diff --git a/package.json b/package.json
index 747f00d2..18e5746c 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"react-query": "^3.39.3",
"react-redux": "^9.1.2",
"redux-persist": "^6.0.0",
+ "tailwind-scrollbar-hide": "^1.1.7",
"yup": "^1.4.0"
},
"devDependencies": {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 147d77b5..8ef0d377 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -47,6 +47,9 @@ importers:
redux-persist:
specifier: ^6.0.0
version: 6.0.0(react@18.3.1)(redux@5.0.1)
+ tailwind-scrollbar-hide:
+ specifier: ^1.1.7
+ version: 1.1.7
yup:
specifier: ^1.4.0
version: 1.4.0
@@ -2230,6 +2233,9 @@ packages:
resolution: {integrity: sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==}
engines: {node: ^14.18.0 || >=16.0.0}
+ tailwind-scrollbar-hide@1.1.7:
+ resolution: {integrity: sha512-X324n9OtpTmOMqEgDUEA/RgLrNfBF/jwJdctaPZDzB3mppxJk7TLIDmOreEDm1Bq4R9LSPu4Epf8VSdovNU+iA==}
+
tailwindcss@3.4.4:
resolution: {integrity: sha512-ZoyXOdJjISB7/BcLTR6SEsLgKtDStYyYZVLsUtWChO4Ps20CBad7lfJKVDiejocV4ME1hLmyY0WJE3hSDcmQ2A==}
engines: {node: '>=14.0.0'}
@@ -4652,6 +4658,8 @@ snapshots:
'@pkgr/core': 0.1.1
tslib: 2.6.3
+ tailwind-scrollbar-hide@1.1.7: {}
+
tailwindcss@3.4.4:
dependencies:
'@alloc/quick-lru': 5.2.0
diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx
index 27a655e9..32100e76 100644
--- a/src/components/Sidebar/index.tsx
+++ b/src/components/Sidebar/index.tsx
@@ -86,37 +86,13 @@ export default function Sidebar() {
{isLoading ? (
-
-
-
-
-
-
-
-
-
-
-
+
+ {[...Array(10)].map((_, i) => (
+
+ ))}
) : (
diff --git a/src/containers/mydashboard/DashboardList/index.tsx b/src/containers/mydashboard/DashboardList/index.tsx
index a8b2fc53..e80eaa58 100644
--- a/src/containers/mydashboard/DashboardList/index.tsx
+++ b/src/containers/mydashboard/DashboardList/index.tsx
@@ -9,7 +9,11 @@ import { DashboardsResponse } from '@/types/Dashboard.interface';
export default function DashboardList() {
const [currentChunk, setCurrentChunk] = useState(1);
- const { data: dashboardResponse, error } = useFetchData(['dashboards', currentChunk], () =>
+ const {
+ data: dashboardResponse,
+ error,
+ isLoading,
+ } = useFetchData(['dashboards', currentChunk], () =>
getDashboardsList('pagination', currentChunk, 5),
);
@@ -49,18 +53,28 @@ export default function DashboardList() {
- {dashboardResponse?.dashboards.map((dashboard) => (
- -
-
-
-
-
{dashboard.title}
- {dashboard.createdByMe &&
}
-
-
-
-
- ))}
+ {isLoading ? (
+ <>
+ {[...Array(5)].map((_, i) => (
+
+ ))}
+ >
+ ) : (
+ <>
+ {dashboardResponse?.dashboards.map((dashboard) => (
+ -
+
+
+
+
{dashboard.title}
+ {dashboard.createdByMe &&
}
+
+
+
+
+ ))}
+ >
+ )}
diff --git a/src/containers/mydashboard/InvitedDashboardList/index.tsx b/src/containers/mydashboard/InvitedDashboardList/index.tsx
index c3013d72..67d538f8 100644
--- a/src/containers/mydashboard/InvitedDashboardList/index.tsx
+++ b/src/containers/mydashboard/InvitedDashboardList/index.tsx
@@ -99,17 +99,6 @@ export default function InvitedDashboardList() {
}
}, 300);
- if (isLoading) {
- return (
-
- );
- }
-
if (error) {
return (
@@ -125,22 +114,57 @@ export default function InvitedDashboardList() {
return (
초대받은 대시보드
- {invitations.length > 0 || isSearching ? (
- <>
-
-
- >
- ) : (
-
-
-
+ {isLoading ? (
+
+
+
+
+ {[...Array(3)].map((_, i) => (
+ <>
+
+
+ >
+ ))}
+
+
+
+ {[...Array(5)].map((_, i) => (
+
+ {[...Array(3)].map((__, j) => (
+ <>
+
+
+ >
+ ))}
+
+ ))}
+
+
+
-
초대된 대시보드가 없습니다.
+ ) : (
+ <>
+ {invitations.length > 0 || isSearching ? (
+ <>
+
+
+ >
+ ) : (
+
+
+
+
+
초대된 대시보드가 없습니다.
+
+ )}
+ >
)}
);
diff --git a/src/containers/mydashboard/index.tsx b/src/containers/mydashboard/index.tsx
index 73578c98..bf497d9c 100644
--- a/src/containers/mydashboard/index.tsx
+++ b/src/containers/mydashboard/index.tsx
@@ -3,7 +3,7 @@ import InvitedDashboardList from './InvitedDashboardList';
export default function MyDashboard() {
return (
-
+
diff --git a/src/layouts/MainLayout.tsx b/src/layouts/MainLayout.tsx
index 59f3098d..fe59055a 100644
--- a/src/layouts/MainLayout.tsx
+++ b/src/layouts/MainLayout.tsx
@@ -21,7 +21,7 @@ export default function MainLayout({ children }: { children: React.ReactNode })
if (isDisabled) return
{children}
;
return (
-
+
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 3b074ce2..da37786c 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -86,7 +86,9 @@ const config: Config = {
},
},
},
- plugins: [],
+ plugins: [
+ require("tailwind-scrollbar-hide"),
+ ],
};
export default config;