Minor Changes
-
#3949
836b06a2f67
Thanks @alicanerdurmaz! - -RefineThemes
added. It contains predefined colors for the MUI components.import { Refine } from "@refinedev/core"; import { RefineThemes } from "@refinedev/mui"; import { ThemeProvider } from "@mui/material/styles"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ThemeProvider theme={RefineThemes.MagentaDark}> <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };
- default title with icon added to
AuthPage
. It uses<ThemedTitle>
component from@refinedev/mui
. You can remove it by settingtitle
prop tofalse
.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return <AuthPage title={false} />; };
title
prop added toAuthPage
'srenderContent
prop to use in the custom content.
import { AuthPage } from "@refinedev/mui"; const MyAuthPage = () => { return ( <AuthPage renderContent={( content: React.ReactNode, title: React.ReactNode, ) => { return ( <div style={{ display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", }} > {title} <h1 style={{ color: "white" }}>Extra Header</h1> {content} <h1 style={{ color: "white" }}>Extra Footer</h1> </div> ); }} /> ); };
-
<ThemedLayout>
,<ThemedSider>
,<ThemedTitle>
,<ThemedHeader>
created to use theme colors. -
<AuthPage>
component uses colors from the theme. -
<ThemedTitle>
added toAuthPage
- default title with icon added to
Patch Changes
- #3956
c54714ed9ab
Thanks @salihozdemir! - Fixed an issue where the<NumberField />
component would throw an error if thevalue
prop was set toundefined
.