From 6fafb15474ddcacc4ad24b10dd3869cf9d300a94 Mon Sep 17 00:00:00 2001 From: Matheus Wichman Date: Tue, 10 Dec 2019 10:11:41 -0300 Subject: [PATCH] Fix styles --- docs/List.md | 16 +++++++++++----- packages/ra-ui-materialui/src/list/Empty.js | 10 +++++++--- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/docs/List.md b/docs/List.md index 08cd538b66d..89737c9fec6 100644 --- a/docs/List.md +++ b/docs/List.md @@ -754,16 +754,22 @@ You can use the `empty` prop to replace that page by a custom component: {% raw %} ```jsx +import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; +import Typography from '@material-ui/core/Typography'; import { CreateButton, List } from 'react-admin'; const Empty = ({ basePath, resource }) => ( -
-

No products available

-
Create one or import from a file
+ + + No products available + + + Create one or import from a file + -
+ ); const ProductList = props => ( @@ -808,7 +814,7 @@ const PostList = props => ( ... ); -```` +``` The default value for the `component` prop is `Card`. diff --git a/packages/ra-ui-materialui/src/list/Empty.js b/packages/ra-ui-materialui/src/list/Empty.js index 9fa123662a8..e4532a031f6 100644 --- a/packages/ra-ui-materialui/src/list/Empty.js +++ b/packages/ra-ui-materialui/src/list/Empty.js @@ -1,5 +1,6 @@ import React from 'react'; import Inbox from '@material-ui/icons/Inbox'; +import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/styles'; import { useTranslate } from 'ra-core'; import { CreateButton } from '../button'; @@ -8,7 +9,6 @@ import inflection from 'inflection'; const useStyles = makeStyles({ message: { textAlign: 'center', - fontFamily: 'Roboto, sans-serif', opacity: 0.5, margin: '0 1em', }, @@ -38,8 +38,12 @@ const Empty = ({ resource, basePath }) => { <>
-

{translate('ra.page.empty', { name: resourceName })}

-
{translate('ra.page.invite')}
+ + {translate('ra.page.empty', { name: resourceName })} + + + {translate('ra.page.invite')} +