fix: Add paragraph prop for bottom margin
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
committed by
Carlos Lopez
parent
e16f805242
commit
2bdd1f92c1
@@ -21,12 +21,12 @@ import { useRandomJoke } from './Context';
|
||||
export const Content = () => {
|
||||
const { joke, loading } = useRandomJoke();
|
||||
|
||||
if (loading) return <Typography>Loading...</Typography>;
|
||||
if (loading) return <Typography paragraph>Loading...</Typography>;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Typography>{joke.setup}</Typography>
|
||||
<Typography>{joke.punchline}</Typography>
|
||||
<Typography paragraph>{joke.setup}</Typography>
|
||||
<Typography paragraph>{joke.punchline}</Typography>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user