feat: Lint paragraphs except in test files & fix
Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
committed by
Carlos Lopez
parent
8de0276086
commit
e75f39e603
@@ -14,18 +14,19 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import React from 'react';
|
||||
import { useRandomJoke } from './Context';
|
||||
|
||||
export const Content = () => {
|
||||
const { joke, loading } = useRandomJoke();
|
||||
|
||||
if (loading) return <p>Loading...</p>;
|
||||
if (loading) return <Typography>Loading...</Typography>;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>{joke.setup}</p>
|
||||
<p>{joke.punchline}</p>
|
||||
<Typography>{joke.setup}</Typography>
|
||||
<Typography>{joke.punchline}</Typography>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user