From 7332e3ebadc5de8163becbfe965e2027b05727c4 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Tue, 9 May 2023 08:05:06 +0300 Subject: [PATCH] remove trash word --- src/components/Views/Edit.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/Views/Edit.tsx b/src/components/Views/Edit.tsx index caaf6503..f4c276c0 100644 --- a/src/components/Views/Edit.tsx +++ b/src/components/Views/Edit.tsx @@ -18,6 +18,13 @@ type EditViewProps = { shout: Shout } +const scrollTop = () => { + window.scrollTo({ + top: 0, + behavior: 'smooth' + }) +} + export const EditView = (props: EditViewProps) => { const { t } = useLocalize() const { user } = useSession() @@ -83,13 +90,6 @@ export const EditView = (props: EditViewProps) => { setForm('slug', slug) } - const scrollTop = () => { - window.scrollTo({ - top: 0, - behavior: 'smooth' - }) - } - const handleSetCover = (imgUrl: string) => { hideModal() console.log('!!! imgUrl:', imgUrl) @@ -110,7 +110,6 @@ export const EditView = (props: EditViewProps) => {
-

ЙФЙФЙФЙФЙЫЙ  

{t('Write an article')}