From 706c3104589e8f6e127474cf926777c09ef9474a Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Thu, 9 Feb 2023 16:22:01 +0500 Subject: [PATCH] rm a inside Link --- src/components/Card/index.tsx | 14 ++++++-------- src/components/Contacts/index.tsx | 2 +- src/components/FIleCard/index.tsx | 8 +++----- src/components/File/index.tsx | 12 ++++-------- src/components/Menu/ActiveLink.tsx | 2 +- src/components/Navigation/DesktopNavigation.tsx | 4 +--- src/components/Navigation/MobileNavigation.tsx | 4 +--- src/components/NotFound/index.tsx | 2 +- src/ui/Button/index.tsx | 6 ++---- 9 files changed, 20 insertions(+), 34 deletions(-) diff --git a/src/components/Card/index.tsx b/src/components/Card/index.tsx index 11166069..9ee0dc9e 100644 --- a/src/components/Card/index.tsx +++ b/src/components/Card/index.tsx @@ -20,15 +20,13 @@ export type CardProps = { export const Card: React.FC = props => (
- -
- {props.cover} -
+
+ {props.cover} +
-
- {props.children} -
-
+
+ {props.children} +
) diff --git a/src/components/Contacts/index.tsx b/src/components/Contacts/index.tsx index 6740062a..0c45bfd9 100644 --- a/src/components/Contacts/index.tsx +++ b/src/components/Contacts/index.tsx @@ -15,7 +15,7 @@ export const Contacts: React.FC = props => { {contacts.map((x, i) => (

- {x.title} + {x.title}

))} diff --git a/src/components/FIleCard/index.tsx b/src/components/FIleCard/index.tsx index 97b2ea63..9ac55feb 100644 --- a/src/components/FIleCard/index.tsx +++ b/src/components/FIleCard/index.tsx @@ -50,16 +50,14 @@ export const FileCard: React.FC = props => { /> )} - {props.title} + {props.title}
- - - {format} ({fileSize}) - + + {format} ({fileSize})
diff --git a/src/components/File/index.tsx b/src/components/File/index.tsx index 8149f2fa..f2e98a4d 100644 --- a/src/components/File/index.tsx +++ b/src/components/File/index.tsx @@ -12,20 +12,16 @@ export const File: React.FC = props => (
{!props.cover?.src ? null : (
- - - {props.name} - + + {props.name}
)}
{props.name} - - - {ext(props.file.type)} ({size(props.file.size)}) - + + {ext(props.file.type)} ({size(props.file.size)})
diff --git a/src/components/Menu/ActiveLink.tsx b/src/components/Menu/ActiveLink.tsx index e4638073..c348f71e 100644 --- a/src/components/Menu/ActiveLink.tsx +++ b/src/components/Menu/ActiveLink.tsx @@ -9,7 +9,7 @@ export type ActiveLinkProps = { export const ActiveLink: React.FC = props => props.href ? ( - {props.children} + {props.children} ) : ( {props.children} diff --git a/src/components/Navigation/DesktopNavigation.tsx b/src/components/Navigation/DesktopNavigation.tsx index a478def5..498c0257 100644 --- a/src/components/Navigation/DesktopNavigation.tsx +++ b/src/components/Navigation/DesktopNavigation.tsx @@ -17,9 +17,7 @@ export const DesktopNavigation: React.FC = ({ style }) = return ( - - - + = ({ style }) => - - - + diff --git a/src/components/NotFound/index.tsx b/src/components/NotFound/index.tsx index c5d4862e..52641673 100644 --- a/src/components/NotFound/index.tsx +++ b/src/components/NotFound/index.tsx @@ -11,7 +11,7 @@ export const NotFound: React.FC = () => (
- На главную + На главную
diff --git a/src/ui/Button/index.tsx b/src/ui/Button/index.tsx index 6ac4463f..7cf7a51c 100644 --- a/src/ui/Button/index.tsx +++ b/src/ui/Button/index.tsx @@ -39,10 +39,8 @@ export const Button: React.FC = ({ size = "default", theme = "defau if (props.href) { return ( - - - {props.children} - + + {props.children} ) }