|
|
@@ -103,44 +103,3 @@ export const SidebarNav: FC<Props> = (props: Props) => {
|
|
|
);
|
|
|
|
|
|
};
|
|
|
-
|
|
|
-// Skeleton Component
|
|
|
-export const SidebarNavSkeleton: FC = memo(() => {
|
|
|
-
|
|
|
- const PrimaryItemSkeleton = () => {
|
|
|
- return (
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- className="d-block btn btn-primary"
|
|
|
- >
|
|
|
- <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
- </button>
|
|
|
- );
|
|
|
- };
|
|
|
-
|
|
|
- const SecondaryItemSkeleton = () => {
|
|
|
- return (
|
|
|
- <a href='/' className="d-block btn btn-primary">
|
|
|
- <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
- </a>
|
|
|
- );
|
|
|
- };
|
|
|
-
|
|
|
- return (
|
|
|
- <div className={`grw-sidebar-nav ${styles['grw-sidebar-nav']}`}>
|
|
|
- <div className="grw-sidebar-nav-primary-container">
|
|
|
- <PrimaryItemSkeleton />
|
|
|
- <PrimaryItemSkeleton />
|
|
|
- <PrimaryItemSkeleton />
|
|
|
- <PrimaryItemSkeleton />
|
|
|
- </div>
|
|
|
- <div className="grw-sidebar-nav-secondary-container">
|
|
|
- <SecondaryItemSkeleton />
|
|
|
- <SecondaryItemSkeleton />
|
|
|
- <SecondaryItemSkeleton />
|
|
|
- <SecondaryItemSkeleton />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- );
|
|
|
-});
|
|
|
-SidebarNavSkeleton.displayName = 'SidebarNavSkeleton';
|