-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...es/hanglog-admin/src/components/adminMember/AdminMemberTable/AdminMemberTableSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Skeleton } from 'hang-log-design-system'; | ||
|
||
import { tableStyling } from './AdminMemberTable.style'; | ||
|
||
interface AdminMemberTableSkeletonProps { | ||
length: number; | ||
} | ||
|
||
const AdminMemberTableSkeleton = ({ length }: AdminMemberTableSkeletonProps) => { | ||
return ( | ||
<table css={tableStyling}> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>계정명</th> | ||
<th>관리자 등급</th> | ||
<th>비밀번호 수정</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{Array.from({ length }, (_, index) => { | ||
return ( | ||
<tr key={index}> | ||
<td colSpan={4}> | ||
<Skeleton /> | ||
</td> | ||
</tr> | ||
); | ||
})} | ||
</tbody> | ||
</table> | ||
); | ||
}; | ||
|
||
export default AdminMemberTableSkeleton; |
38 changes: 38 additions & 0 deletions
38
...end-monorepo/packages/hanglog-admin/src/pages/AdminMemberPage/AdminMemberPageSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Button, Flex, Heading, Skeleton } from 'hang-log-design-system'; | ||
|
||
import SidebarNavigation from '@/components/common/SidebarNavigation/SidebarNavigation'; | ||
import AdminMemberTableSkeleton from '@/components/adminMember/AdminMemberTable/AdminMemberTableSkeleton'; | ||
|
||
import { | ||
containerStyling, | ||
titleStyling, | ||
addButtonStyling, | ||
tableStyling, | ||
pagenationSkeletonStyling, | ||
} from './AdminMemberPage.style'; | ||
|
||
const AdminMemberPageSkeleton = () => { | ||
return ( | ||
<> | ||
<Flex> | ||
<SidebarNavigation /> | ||
<Flex styles={{ direction: 'column', align: 'center' }} css={containerStyling}> | ||
<Heading size="large" css={titleStyling}> | ||
관리자 멤버 관리 | ||
</Heading> | ||
<Button variant="primary" css={addButtonStyling}> | ||
추가하기 | ||
</Button> | ||
<section css={tableStyling}> | ||
<AdminMemberTableSkeleton length={10} /> | ||
</section> | ||
<div css={pagenationSkeletonStyling}> | ||
<Skeleton /> | ||
</div> | ||
</Flex> | ||
</Flex> | ||
</> | ||
); | ||
}; | ||
|
||
export default AdminMemberPageSkeleton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters