Skip to content

Commit

Permalink
Plug the background image prop to the Login Page
Browse files Browse the repository at this point in the history
  • Loading branch information
Kmaschta committed Nov 30, 2018
1 parent d483c2c commit 8d57b19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/ra-core/src/CoreAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ interface Props {
menu: ComponentType;
theme: object;
title: ReactNode;
backgroundImage: string;
}

class CoreAdmin extends Component<Props> {
Expand Down Expand Up @@ -81,6 +82,7 @@ React-admin requires a valid dataProvider function to work.`);
loading,
loginPage,
logoutButton,
backgroundImage,
} = this.props;

const logout = authProvider ? createElement(logoutButton) : null;
Expand All @@ -97,6 +99,7 @@ React-admin requires a valid dataProvider function to work.`);
...props,
title,
theme,
backgroundImage,
})
}
/>
Expand Down

0 comments on commit 8d57b19

Please sign in to comment.