Add linter on CI

This commit is contained in:
Charles Bochet
2023-04-20 11:44:47 +02:00
parent 5469d27911
commit b8d089395f
21 changed files with 55 additions and 24 deletions

View File

@ -3,11 +3,13 @@ import AppLayout from '../AppLayout';
import { ThemeProvider } from '@emotion/react';
import { lightTheme } from '../styles/themes';
export default {
const component = {
title: 'AppLayout',
component: AppLayout,
};
export default component;
export const AppLayoutDefault = () => (
<ThemeProvider theme={lightTheme}>
<MemoryRouter>

View File

@ -9,7 +9,7 @@ const StyledContainer = styled.div`
align-items: center;
`;
function HorizontalyAlignedContainer({ children: children }: OwnProps) {
function HorizontalyAlignedContainer({ children }: OwnProps) {
return <StyledContainer>{children}</StyledContainer>;
}

View File

@ -5,11 +5,13 @@ import { ThemeProvider } from '@emotion/react';
import NavItem from '../../../layout/navbar/NavItem';
import { lightTheme } from '../../styles/themes';
export default {
const component = {
title: 'NavItem',
component: NavItem,
};
export default component;
export const NavItemDefault = () => (
<ThemeProvider theme={lightTheme}>
<MemoryRouter>

View File

@ -4,11 +4,13 @@ import Navbar from '../Navbar';
import { ThemeProvider } from '@emotion/react';
import { lightTheme } from '../../styles/themes';
export default {
const component = {
title: 'Navbar',
component: Navbar,
};
export default component;
export const NavbarOnCompanies = () => {
return (
<ThemeProvider theme={lightTheme}>