Is this possible to update standart UI? #4759
Answered
by
vinclou
YunusEmreAlps
asked this question in
Q&A
-
Hi, I hope you're well and everything is good with you. I'm using refine with the mantine UI framework. How can I update menu UI or is this possible? For example, I want to update the navbar like this https://ui.mantine.dev/category/navbars examples. The logout button will be at the bottom of this like in this examples. Thank you very much. |
Beta Was this translation helpful? Give feedback.
Answered by
vinclou
Jul 31, 2023
Replies: 1 comment
-
export const Layout: React.FC<TCustomLayoutProps> = ({ children, Header, Sider, Title, Footer, initialSiderCollapsed }) => {
const SiderToRender = Sider ?? DefaultSider
const HeaderToRender = Header ?? DefaultHeader
const TitleToRender = Title ?? DefaultTitle
return (
<ThemedLayoutContextProvider initialSiderCollapsed={initialSiderCollapsed}>
<AntdLayout>
<SiderToRender Title={TitleToRender} />
<AntdLayout>
<HeaderToRender />
<AntdLayout.Content className='my-4 mx-auto'>
{children}
<DefaultOffLayoutArea />
</AntdLayout.Content>
{Footer && <Footer />}
</AntdLayout>
</AntdLayout>
</ThemedLayoutContextProvider>
)
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
omeraplak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@YunusEmreAlps