|
@@ -49,17 +49,6 @@ const PrimaryItem: FC<PrimaryItemProps> = (props: PrimaryItemProps) => {
|
|
|
);
|
|
);
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const PrimaryItemSkeleton: FC = () => {
|
|
|
|
|
- return (
|
|
|
|
|
- <button
|
|
|
|
|
- type="button"
|
|
|
|
|
- className="d-block btn btn-primary"
|
|
|
|
|
- >
|
|
|
|
|
- <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
|
|
- </button>
|
|
|
|
|
- );
|
|
|
|
|
-};
|
|
|
|
|
-
|
|
|
|
|
type SecondaryItemProps = {
|
|
type SecondaryItemProps = {
|
|
|
label: string,
|
|
label: string,
|
|
|
href: string,
|
|
href: string,
|
|
@@ -78,15 +67,6 @@ const SecondaryItem: FC<SecondaryItemProps> = memo((props: SecondaryItemProps) =
|
|
|
});
|
|
});
|
|
|
SecondaryItem.displayName = 'SecondaryItem';
|
|
SecondaryItem.displayName = 'SecondaryItem';
|
|
|
|
|
|
|
|
-// eslint-disable-next-line react/display-name
|
|
|
|
|
-const SecondaryItemSkeleton: FC = memo(() => {
|
|
|
|
|
- return (
|
|
|
|
|
- <a href='/' className="d-block btn btn-primary">
|
|
|
|
|
- <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
|
|
- </a>
|
|
|
|
|
- );
|
|
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
type Props = {
|
|
|
onItemSelected: (contents: SidebarContentsType) => void,
|
|
onItemSelected: (contents: SidebarContentsType) => void,
|
|
@@ -124,7 +104,30 @@ export const SidebarNav: FC<Props> = (props: Props) => {
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+// Skeleton Component
|
|
|
export const SidebarNavSkeleton: FC = () => {
|
|
export const SidebarNavSkeleton: FC = () => {
|
|
|
|
|
+
|
|
|
|
|
+ const PrimaryItemSkeleton: FC = memo(() => {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <button
|
|
|
|
|
+ type="button"
|
|
|
|
|
+ className="d-block btn btn-primary"
|
|
|
|
|
+ >
|
|
|
|
|
+ <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
|
|
+ </button>
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
|
|
+ PrimaryItemSkeleton.displayName = 'PrimaryItemSkeleton';
|
|
|
|
|
+
|
|
|
|
|
+ const SecondaryItemSkeleton: FC = memo(() => {
|
|
|
|
|
+ return (
|
|
|
|
|
+ <a href='/' className="d-block btn btn-primary">
|
|
|
|
|
+ <i className="fa fa-square" aria-hidden="true"></i>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ );
|
|
|
|
|
+ });
|
|
|
|
|
+ SecondaryItemSkeleton.displayName = 'SecondaryItemSkeleton';
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<div className={`grw-sidebar-nav ${styles['grw-sidebar-nav']}`}>
|
|
<div className={`grw-sidebar-nav ${styles['grw-sidebar-nav']}`}>
|
|
|
<div className="grw-sidebar-nav-primary-container">
|
|
<div className="grw-sidebar-nav-primary-container">
|