Minor Changes
-
#3996
327be2be623
Thanks @alicanerdurmaz! - -RefineThemes
added. It contains predefined colors for the Mantine components.import { Refine } from "@refinedev/core"; import { RefineThemes } from "@refinedev/mantine"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <MantineProvider theme={RefineThemes.Magenta}> <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </MantineProvider> ); };
- default title with icon added to
AuthPage
. It uses<ThemedTitle>
component from@refinedev/mantine
. You can remove it by settingtitle
prop tofalse
.
import { AuthPage, ThemedTitle } from "@refinedev/mantine"; const MyLoginPage = () => { return ( <AuthPage type="login" title={ <ThemedTitle title="My Title" icon={<img src="https://refine.dev/img/logo.png" />} /> } /> ); };
title
prop added toAuthPage
'srenderContent
prop to use in the custom content.
import { Box, Text } from "@mantine/core"; import { AuthPage } from "@refinedev/mantine"; const MyLoginPage = () => { return ( <AuthPage contentProps={{ style: { width: "400px", }, }} renderContent={( content: React.ReactNode, title: React.ReactNode, ) => { return ( <Box bg="white" borderRadius="md" px="5" display="flex" flexDirection="column" justifyContent="center" alignItems="center" > {title} <Text>Extra Header</Text> {content} <Text>Extra Footer</Text> </Box> ); }} /> ); };
-
<ThemedLayout>
,<ThemedSider>
,<ThemedTitle>
,<ThemedHeader>
created to use theme colors. -
<EditButton>
in<Show>
color changed tobrand
. -
<CreateButton>
color changed tobrand
. -
<AuthPage>
component uses colors from the theme. -
<ThemedTitle>
added toAuthPage
- default title with icon added to
Patch Changes
- #3974
4dcc20d6a60
Thanks @salihozdemir! - Deprecated theWelcomePage
component. It'll be used from@refinedev/core
instead.