mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
refactor sidebar and stuff
This commit is contained in:
parent
7698d17ed3
commit
1eb6c9c29d
8 changed files with 21 additions and 19 deletions
|
@ -5,7 +5,7 @@ import classNames from 'classnames';
|
|||
import { FlowGrid } from '~/components/flow/FlowGrid';
|
||||
import { FlowSwiperHero } from '~/components/flow/FlowSwiperHero';
|
||||
import { FlowStamp } from '~/containers/flow/FlowStamp';
|
||||
import { SidebarRouter } from '~/containers/main/SidebarRouter';
|
||||
import { SubmitBarRouter } from '~/containers/main/SubmitBarRouter';
|
||||
import { useUser } from '~/hooks/auth/useUser';
|
||||
import { useInfiniteLoader } from '~/hooks/dom/useInfiniteLoader';
|
||||
import { useFlowContext } from '~/utils/providers/FlowProvider';
|
||||
|
@ -15,7 +15,8 @@ import styles from './styles.module.scss';
|
|||
interface Props {}
|
||||
|
||||
const FlowLayout: FC<Props> = () => {
|
||||
const { heroes, nodes, onChangeCellView, loadMore, isSyncing } = useFlowContext();
|
||||
const { heroes, nodes, onChangeCellView, loadMore, isSyncing } =
|
||||
useFlowContext();
|
||||
const { user } = useUser();
|
||||
|
||||
useInfiniteLoader(loadMore, isSyncing);
|
||||
|
@ -31,10 +32,14 @@ const FlowLayout: FC<Props> = () => {
|
|||
<FlowStamp isFluid={false} onToggleLayout={console.warn} />
|
||||
</div>
|
||||
|
||||
<FlowGrid nodes={nodes} user={user} onChangeCellView={onChangeCellView} />
|
||||
<FlowGrid
|
||||
nodes={nodes}
|
||||
user={user}
|
||||
onChangeCellView={onChangeCellView}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<SidebarRouter prefix="" />
|
||||
<SubmitBarRouter prefix="" />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue