Skip to content

Commit

Permalink
hotfix: error build
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe-997 committed Jul 26, 2024
1 parent 76255cc commit 9c7153b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/admin/(inner-admin)/files/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Files() {
<div className="border border-solid border-[var(--border-cl)] shadow-lg p-3 rounded-lg">
<Radio.Group onChange={onChangeSort} value={value}>
{items.map((item: any) => (
<Radio value={item.key} className="block">
<Radio key={item.key} value={item.key} className="block">
{item.label}
</Radio>
))}
Expand Down
2 changes: 1 addition & 1 deletion app/admin/(inner-admin)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default async function RootLayout({
className={`${fontBase.className} bg-[#f5f5f5] overflow-hidden`}
suppressHydrationWarning={true}
>
<AdminLayout children={children} />
<AdminLayout>{children}</AdminLayout>
</body>
</html>
);
Expand Down
8 changes: 3 additions & 5 deletions app/components/Common/adminLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ const AdminLayout = ({ children }: { children: React.ReactNode }) => {
return (
<Layout>
<SideBar collapsed={collapsed} />
<ContentAdmin
children={children}
collapsed={collapsed}
setCollapsed={setCollapsed}
/>
<ContentAdmin collapsed={collapsed} setCollapsed={setCollapsed}>
{children}
</ContentAdmin>
</Layout>
);
};
Expand Down

0 comments on commit 9c7153b

Please sign in to comment.