expand sub tasks

This commit is contained in:
chamiakJ
2025-07-03 01:31:05 +05:30
parent 3bef18901a
commit ecd4d29a38
435 changed files with 13150 additions and 11087 deletions

View File

@@ -8,4 +8,4 @@ export const AuthenticatedLayout = () => {
<Outlet />
</SocketProvider>
);
};
};

View File

@@ -33,52 +33,55 @@ const MainLayout = memo(() => {
}, [verifyAuthStatus]);
// Memoize styles to prevent object recreation on every render
const headerStyles = useMemo(() => ({
zIndex: 999,
position: 'fixed' as const,
width: '100%',
display: 'flex',
alignItems: 'center',
padding: 0,
borderBottom: themeMode === 'dark' ? '1px solid #303030' : 'none',
}), [themeMode]);
const headerStyles = useMemo(
() => ({
zIndex: 999,
position: 'fixed' as const,
width: '100%',
display: 'flex',
alignItems: 'center',
padding: 0,
borderBottom: themeMode === 'dark' ? '1px solid #303030' : 'none',
}),
[themeMode]
);
const contentStyles = useMemo(() => ({
paddingInline: isDesktop ? 64 : 24,
overflowX: 'hidden' as const,
}), [isDesktop]);
const contentStyles = useMemo(
() => ({
paddingInline: isDesktop ? 64 : 24,
overflowX: 'hidden' as const,
}),
[isDesktop]
);
// Memoize theme configuration
const themeConfig = useMemo(() => ({
components: {
Layout: {
colorBgLayout: themeMode === 'dark' ? colors.darkGray : colors.white,
headerBg: themeMode === 'dark' ? colors.darkGray : colors.white,
const themeConfig = useMemo(
() => ({
components: {
Layout: {
colorBgLayout: themeMode === 'dark' ? colors.darkGray : colors.white,
headerBg: themeMode === 'dark' ? colors.darkGray : colors.white,
},
},
},
}), [themeMode]);
}),
[themeMode]
);
// Memoize header className
const headerClassName = useMemo(() =>
`shadow-md ${themeMode === 'dark' ? '' : 'shadow-[#18181811]'}`,
const headerClassName = useMemo(
() => `shadow-md ${themeMode === 'dark' ? '' : 'shadow-[#18181811]'}`,
[themeMode]
);
return (
<ConfigProvider theme={themeConfig}>
<Layout style={{ minHeight: '100vh' }}>
<Layout.Header
className={headerClassName}
style={headerStyles}
>
<Layout.Header className={headerClassName} style={headerStyles}>
<Navbar />
</Layout.Header>
<Layout.Content>
<Col
xxl={{ span: 18, offset: 3, flex: '100%' }}
style={contentStyles}
>
<Col xxl={{ span: 18, offset: 3, flex: '100%' }} style={contentStyles}>
<Outlet />
</Col>
</Layout.Content>

View File

@@ -14,7 +14,7 @@ const AdminCenterLayout: React.FC = () => {
const { t } = useTranslation('admin-center/sidebar');
useEffect(() => {
void dispatch(verifyAuthentication())
void dispatch(verifyAuthentication());
}, [dispatch]);
return (