mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-16 08:24:16 +02:00
optimize various base components
This commit is contained in:
@@ -32,12 +32,12 @@ const ResponsiveLayoutBase = ({ shell }: ResponsiveLayoutProps) => {
|
||||
|
||||
export const ResponsiveLayout = ({ shell }: ResponsiveLayoutProps) => {
|
||||
useAppTracker();
|
||||
useGarbageCollection();
|
||||
|
||||
return (
|
||||
<>
|
||||
<ResponsiveLayoutBase shell={shell} />
|
||||
<LayoutHotkeys />
|
||||
<GarbageCollection />
|
||||
</>
|
||||
);
|
||||
};
|
||||
@@ -77,3 +77,8 @@ const LayoutHotkeys = () => {
|
||||
|
||||
return <CommandPalette modalProps={{ handlers, opened }} />;
|
||||
};
|
||||
|
||||
const GarbageCollection = () => {
|
||||
useGarbageCollection();
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user