Skip to content

Commit 26b8432

Browse files
Abdulnasır OlcanAbdulnasır Olcan
Abdulnasır Olcan
authored and
Abdulnasır Olcan
committed
🚀 updated version
1 parent 3adda23 commit 26b8432

File tree

8 files changed

+13
-15
lines changed

8 files changed

+13
-15
lines changed

example/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
},
1111
"dependencies": {
1212
"react": "^18.2.0",
13-
"react-dom": "^18.2.0"
13+
"react-dom": "^18.2.0",
14+
"react-lazy-loader-component": "^0.1.2"
1415
},
1516
"devDependencies": {
1617
"@types/react": "^18.0.24",

example/postcss.config.cjs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
const { join } = require('path');
2-
31
module.exports = {
4-
plugins: {
5-
tailwindcss: {
6-
config: join(__dirname, 'tailwind.config.cjs'),
7-
},
8-
autoprefixer: {},
9-
},
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
}
106
}

example/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LazyLoad } from "../../../src";
1+
import { LazyLoad } from "react-lazy-loader-component";
22

33
const Footer = () => {
44
return (

example/src/components/GetInTouch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Suspense } from 'react';
22

3-
const LazyLoad = React.lazy(() => import('../../../src/LazyLoad'));
3+
import { LazyLoad } from "react-lazy-loader-component";
44

55
const GetInTouch = () => {
66
return (

example/src/components/OurSatisfiedClients.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LazyLoad } from "../../../src";
1+
import { LazyLoad } from "react-lazy-loader-component";
22

33
const OurSatisfiedClients = () => {
44
return (

example/src/components/ProductCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LazyLoad } from "../../../src";
1+
import { LazyLoad } from "react-lazy-loader-component";
22

33
const ProductCards = () => {
44
return (

example/src/components/Shop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LazyLoad } from "../../../src";
1+
import { LazyLoad } from "react-lazy-loader-component";
22

33
const Shop = () => {
44
return (

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
declare module 'react-lazy-loader-component'
1+
declare module 'react-lazy-loader-component';
2+
declare module 'react-lazy-loader-component/LazyLoad';

0 commit comments

Comments
 (0)