From 05ccf76dbbb54e52ae81a469f91b3660057058dc Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 01:18:16 +0300 Subject: style: install eslint --- src/components/Button.tsx | 10 ++++++---- src/components/Header.tsx | 2 +- src/components/ListTable.tsx | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) (limited to 'src/components') diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 55ceda6..5fd69b2 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -7,14 +7,16 @@ interface Props { const styles = { - contained: "bg-black text-white", - outlined: "border-2 border-black" + contained: 'bg-black text-white', + outlined: 'border-2 border-black', }; const Button: React.FC = ({ children, variant = 'contained' }) => { - return ( - ); diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 75d96a9..bc77bf8 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -8,7 +8,7 @@ interface Props { }[]; } -const Header: React.FC = ({ children, navigation }) => { +const Header: React.FC = ({ navigation }) => { return (
{navigation.map(({ name, route }) => ( diff --git a/src/components/ListTable.tsx b/src/components/ListTable.tsx index 5d899e0..9faa0ad 100644 --- a/src/components/ListTable.tsx +++ b/src/components/ListTable.tsx @@ -12,7 +12,7 @@ interface Props { } -const ListTable: React.FC = ({ children, items, fields, handleRowClick = () => {} }) => { +const ListTable: React.FC = ({ items, fields, handleRowClick = () => {} }) => { return ( -- cgit v1.2.3