Hide sidebar from refine component
I am using <Refine /> component in the root of the app, and it automatically creates a sidebar with all the resources, how could I hide it? I need to completely remove the sidebar including logout butons
null to the prop of the component. This effectively removes the sidebar from the layout.null to the prop to hide the sidebar.null to the prop to hide the sidebar.null, the will not be displayed.Refine component.<Refine /><Refine />LayoutLayoutThemedLayoutV2ThemedLayoutV2ThemedLayoutV2SiderSiderSiderSiderSiderSiderTitleTitleTitleTitleimport { Refine } from "@refinedev/core";
import { Layout } from "@refinedev/antd";
const App: React.FC = () => {
return (
<Refine
// ...
>
<Layout
Sider={() => null}
>
{/* ... */}
</Layout>
</Refine>
);
}; import { Refine } from "@refinedev/core";
import { ThemedLayoutV2, ThemedTitleV2 } from "@refinedev/antd";
import { MyLargeIcon, MySmallIcon } from "./MyIcon";
const App: React.FC = () => {
return (
<Refine
// ...
>
<ThemedLayoutV2
Title={({ collapsed }) => (
<ThemedTitleV2
// collapsed is a boolean value that indicates whether the <Sidebar> is collapsed or not
collapsed={collapsed}
icon={collapsed ? <MySmallIcon /> : <MyLargeIcon />}
text="My Project"
/>
)}
Sider={() => null}
>
{/* ... */}
</ThemedLayoutV2>
</Refine>
);
};