Fixes lint style errors

This commit is contained in:
pikiou 2021-11-24 00:08:19 +01:00
parent 3ac9c72a8b
commit 051784a6da
22 changed files with 51 additions and 51 deletions

View File

@ -2,7 +2,7 @@
exports[`<App /> renders 1`] = ` exports[`<App /> renders 1`] = `
<div <div
className="App" className="app"
> >
<a <a
className="header" className="header"

View File

@ -15,7 +15,7 @@ interface Route {
} }
const App = ({ route }: Route): JSX.Element => ( const App = ({ route }: Route): JSX.Element => (
<div className={styles.App}> <div className={styles.app}>
<Helmet {...config.APP} /> <Helmet {...config.APP} />
<Link to="/" className={styles.header}> <Link to="/" className={styles.header}>
<img src={logo} alt="Logo" role="presentation" /> <img src={logo} alt="Logo" role="presentation" />

View File

@ -5,22 +5,14 @@ body {
font-family: "Helvetica-Light", Helvetica, Arial, sans-serif; font-family: "Helvetica-Light", Helvetica, Arial, sans-serif;
} }
.App { .app {
color: $color-white; color: $color-white;
.header {
color: inherit;
display: block;
overflow: auto;
padding: 15px;
text-decoration: none;
img { img {
float: left; float: left;
height: 70px; height: 70px;
margin-right: 1em; margin-right: 1em;
} }
}
hr { hr {
margin-bottom: 0; margin-bottom: 0;
@ -28,3 +20,11 @@ body {
opacity: 0.15; opacity: 0.15;
} }
} }
.header {
color: inherit;
display: block;
overflow: auto;
padding: 15px;
text-decoration: none;
}

View File

@ -5,11 +5,11 @@
ul { ul {
padding-left: 17px; padding-left: 17px;
}
li { li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
}
a { a {
color: $color-white; color: $color-white;

View File

@ -5,11 +5,11 @@
ul { ul {
padding-left: 17px; padding-left: 17px;
}
li { li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
}
a { a {
color: $color-white; color: $color-white;

View File

@ -2,7 +2,7 @@
exports[`<Loading /> renders 1`] = ` exports[`<Loading /> renders 1`] = `
<div <div
class="Loading" class="loading"
> >
<p> <p>
Loading... Loading...

View File

@ -1,7 +1,7 @@
import styles from "./styles.module.scss" import styles from "./styles.module.scss"
const Loading = (): JSX.Element => ( const Loading = (): JSX.Element => (
<div className={styles.Loading}> <div className={styles.loading}>
<p>Loading...</p> <p>Loading...</p>
</div> </div>
) )

View File

@ -1,3 +1,3 @@
.Loading { .loading {
padding: 0 15px; padding: 0 15px;
} }

View File

@ -1,9 +1,9 @@
.membre-card { .membre-card {
ul { ul {
padding-left: 17px; padding-left: 17px;
}
li { li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
}
} }

View File

@ -2,7 +2,7 @@
exports[`<MembreList /> renders 1`] = ` exports[`<MembreList /> renders 1`] = `
<div <div
class="MembreList" class="user-list"
> >
<h4> <h4>
Membre List Membre List

View File

@ -9,7 +9,7 @@ interface Props {
} }
const MembreList = ({ items }: Props) => ( const MembreList = ({ items }: Props) => (
<div className={styles.MembreList}> <div className={styles["user-list"]}>
<h4>Membre List</h4> <h4>Membre List</h4>
<ul> <ul>
{items.map(({ id, nom, prenom }) => ( {items.map(({ id, nom, prenom }) => (

View File

@ -1,15 +1,15 @@
@import "../../theme/variables"; @import "../../theme/variables";
.UserList { .user-list {
color: $color-white; color: $color-white;
ul { ul {
padding-left: 17px; padding-left: 17px;
}
li { li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
}
a { a {
color: $color-white; color: $color-white;

View File

@ -5,11 +5,11 @@
ul { ul {
padding-left: 17px; padding-left: 17px;
}
li { li {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
}
a { a {
color: $color-white; color: $color-white;

View File

@ -37,7 +37,7 @@ function useList<Entity>(
const Home: FC<Props> = (): JSX.Element => { const Home: FC<Props> = (): JSX.Element => {
const dispatch = useDispatch() const dispatch = useDispatch()
return ( return (
<div className={styles.Home}> <div className={styles.home}>
<Helmet title="Home" /> <Helmet title="Home" />
<AddEnvie dispatch={dispatch} /> <AddEnvie dispatch={dispatch} />
{/* {useList((state: AppState) => state.envieList, fetchEnvieListifNeed)()} */} {/* {useList((state: AppState) => state.envieList, fetchEnvieListifNeed)()} */}

View File

@ -2,7 +2,7 @@
exports[`<Home /> renders an error if loading failed 1`] = ` exports[`<Home /> renders an error if loading failed 1`] = `
<div <div
class="Home" class="home"
> >
<section <section
class="EnvieList" class="EnvieList"
@ -77,7 +77,7 @@ exports[`<Home /> renders an error if loading failed 1`] = `
exports[`<Home /> renders the <List /> if loading was successful 1`] = ` exports[`<Home /> renders the <List /> if loading was successful 1`] = `
<div <div
class="Home" class="home"
> >
<section <section
class="EnvieList" class="EnvieList"
@ -164,7 +164,7 @@ exports[`<Home /> renders the <List /> if loading was successful 1`] = `
exports[`<Home /> renders the loading status if data invalid 1`] = ` exports[`<Home /> renders the loading status if data invalid 1`] = `
<div <div
class="Home" class="home"
> >
<section <section
class="EnvieList" class="EnvieList"
@ -239,7 +239,7 @@ exports[`<Home /> renders the loading status if data invalid 1`] = `
exports[`<Home /> renders the loading status if requesting data 1`] = ` exports[`<Home /> renders the loading status if requesting data 1`] = `
<div <div
class="Home" class="home"
> >
<section <section
class="EnvieList" class="EnvieList"

View File

@ -1,3 +1,3 @@
.Home { .home {
padding: 0 15px; padding: 0 15px;
} }

View File

@ -37,7 +37,7 @@ const MembrePage = ({ match }: Props): JSX.Element => {
} }
return ( return (
<div className={styles.Membre}> <div className={styles.membre}>
<Helmet title="User Info" /> <Helmet title="User Info" />
{renderInfo()} {renderInfo()}
</div> </div>

View File

@ -2,7 +2,7 @@
exports[`<MembrePage /> renders an error if loading failed 1`] = ` exports[`<MembrePage /> renders an error if loading failed 1`] = `
<div <div
class="Membre" class="membre"
> >
<p> <p>
Oops! Failed to load data. Oops! Failed to load data.
@ -12,7 +12,7 @@ exports[`<MembrePage /> renders an error if loading failed 1`] = `
exports[`<MembrePage /> renders the <Info /> if loading was successful 1`] = ` exports[`<MembrePage /> renders the <Info /> if loading was successful 1`] = `
<div <div
class="Membre" class="membre"
> >
<div> <div>
<div <div
@ -85,7 +85,7 @@ exports[`<MembrePage /> renders the <Info /> if loading was successful 1`] = `
exports[`<MembrePage /> renders the loading status if data invalid 1`] = ` exports[`<MembrePage /> renders the loading status if data invalid 1`] = `
<div <div
class="Membre" class="membre"
> >
<p> <p>
Oops! Failed to load data. Oops! Failed to load data.
@ -95,7 +95,7 @@ exports[`<MembrePage /> renders the loading status if data invalid 1`] = `
exports[`<MembrePage /> renders the loading status if requesting data 1`] = ` exports[`<MembrePage /> renders the loading status if requesting data 1`] = `
<div <div
class="Membre" class="membre"
> >
<p> <p>
Loading... Loading...

View File

@ -1,3 +1,3 @@
.Membre { .membre {
padding: 0 15px; padding: 0 15px;
} }

View File

@ -2,7 +2,7 @@
exports[`<NotFound /> renders 1`] = ` exports[`<NotFound /> renders 1`] = `
<div <div
class="NotFound" class="not-found"
> >
<p> <p>
Oops, Page was not found! Oops, Page was not found!

View File

@ -13,7 +13,7 @@ const NotFound = ({ staticContext }: Props) => {
if (staticContext) staticContext.statusCode = 404 if (staticContext) staticContext.statusCode = 404
return ( return (
<div className={styles.NotFound}> <div className={styles["not-found"]}>
<Helmet title="Oops" /> <Helmet title="Oops" />
<p>Oops, Page was not found!</p> <p>Oops, Page was not found!</p>
</div> </div>

View File

@ -1,3 +1,3 @@
.NotFound { .not-found {
padding: 0 15px; padding: 0 15px;
} }