Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to customize the ready screen on empty admins #5441

Merged
merged 2 commits into from
Oct 27, 2020

Conversation

fzaninotto
Copy link
Member

import * as React from 'react';
import { Admin } from 'react-admin';

const Ready = () => (
    <div>
        <h1>Admin ready</h1>
        <p>You can now add resources</p>
    </div>
)

const App = () => (
    <Admin ready={Ready}>
        ...
    </Admin>
);

This will help build an offline-first distribution of react-admin.

@fzaninotto fzaninotto added the RFR Ready For Review label Oct 26, 2020
@Luwangel Luwangel added this to the 3.10.0 milestone Oct 27, 2020
Copy link
Contributor

@Luwangel Luwangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one last review about the documentation and I'll merge it :)

docs/Admin.md Outdated Show resolved Hide resolved
Co-authored-by: Adrien Amoros <adrien.amoros@gmail.com>
@Luwangel Luwangel merged commit 0627d0a into next Oct 27, 2020
@Luwangel Luwangel deleted the customizable-ready-component branch October 27, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants