Minor Changes
-
#3912
0ffe70308b2
Thanks @alicanerdurmaz! - -RefineThemes
added. It contains predefined colors for the antd components.import { RefineThemes } from "@refinedev/antd"; import { Refine } from "@refinedev/core"; import dataProvider from "@refinedev/simple-rest"; const App = () => { // --- return ( <ConfigProvider theme={{ token: RefineThemes.Magenta.token, }} > <Refine dataProvider={dataProvider("YOUR_API_URL")}> {/** your app here */} </Refine> </ConfigProvider> ); };
- default title with icon added to
AuthPage
. It usesThemedTitle
component from@refinedev/antd
. You can remove it by settingtitle
prop tofalse
.
<AuthPage title={false} />
title
prop added toAuthPage
'srenderContent
prop to use in the custom content.
<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. -
<EditButton>
in<Show>
type changed toprimary
. -
<CreateButton>
type changed toprimary
. -
<AuthPage>
component uses colors from the theme. -
<ThemedTitle>
added toAuthPage
- default title with icon added to
Patch Changes
- Updated dependencies [
0ffe70308b2
]:- @refinedev/ui-types@1.3.0