From 185514417329a6abea519f57f5a60c7ad9c1c1e1 Mon Sep 17 00:00:00 2001 From: VictoryPashkova Date: Sat, 22 Jun 2024 13:02:54 +0600 Subject: [PATCH] chore: fix linting issues --- frontend/src/components/Footer/index.jsx | 12 +- .../src/components/Forms/AvatarChangeForm.jsx | 4 +- .../components/Forms/ChangePasswordForm.jsx | 4 +- .../components/Forms/ForgotPasswordForm.jsx | 4 +- .../components/Forms/GithubSignInButton.jsx | 4 +- .../src/components/Forms/GuestSignUpForm.jsx | 4 +- .../Forms/PasswordVisibilityButton.jsx | 12 +- .../components/Forms/ResetPasswordForm.jsx | 4 +- frontend/src/components/Forms/SignInForm.jsx | 4 +- frontend/src/components/Forms/SignUpForm.jsx | 4 +- .../components/Forms/UpdateAccountForm.jsx | 4 +- .../Modals/AttemptDuplicateSnippet.jsx | 8 +- .../src/components/Modals/ChangeAvatar.jsx | 4 +- .../Modals/DuplicateSnippetModal.jsx | 16 +- .../src/components/Modals/InDevelopment.jsx | 4 +- frontend/src/components/Modals/NewSnippet.jsx | 8 +- .../src/components/Modals/RemoveAccount.jsx | 7 +- .../src/components/Modals/RemoveAvatar.jsx | 4 +- .../src/components/Modals/ShareSnippet.jsx | 12 +- frontend/src/components/Modals/SignIn.jsx | 12 +- frontend/src/components/Modals/SignUp.jsx | 16 +- .../components/Modals/SnippetUnavailable.jsx | 8 +- .../src/components/Navigation/AuthButtons.jsx | 4 +- .../src/components/Navigation/GuestMenu.jsx | 8 +- .../Navigation/LanguageSelector.jsx | 8 +- .../components/Navigation/ThemeSelector.jsx | 4 +- .../src/components/Navigation/UserMenu.jsx | 8 +- frontend/src/components/Navigation/index.jsx | 6 +- frontend/src/pages/404/index.jsx | 16 +- frontend/src/pages/embed/index.jsx | 14 +- frontend/src/pages/forgot-password/index.jsx | 8 +- frontend/src/pages/landing/Footer.jsx | 4 +- frontend/src/pages/landing/Header.jsx | 8 +- frontend/src/pages/landing/Landing.jsx | 7 +- frontend/src/pages/old-landing/index.jsx | 8 +- frontend/src/pages/profile/NewSnippetForm.jsx | 13 +- frontend/src/pages/profile/SnippetCard.jsx | 24 +- frontend/src/pages/settings/index.jsx | 8 +- frontend/src/pages/signin/index.jsx | 8 +- frontend/src/pages/signup/index.jsx | 12 +- frontend/src/pages/snippet/ActionsToolbar.jsx | 8 +- frontend/src/pages/snippet/FileToolbar.jsx | 4 +- yarn.lock | 1930 ++++++++++------- 43 files changed, 1323 insertions(+), 946 deletions(-) diff --git a/frontend/src/components/Footer/index.jsx b/frontend/src/components/Footer/index.jsx index 2167341c..0b018013 100644 --- a/frontend/src/components/Footer/index.jsx +++ b/frontend/src/components/Footer/index.jsx @@ -6,7 +6,9 @@ import { ReactComponent as Vk } from '../../assets/images/icons/vk.svg'; import classes from './index.module.css'; function Footer() { - const { t: tF, i18n } = useTranslation('translation', { keyPrefix: 'footer' }); + const { t: tF, i18n } = useTranslation('translation', { + keyPrefix: 'footer', + }); const { language } = i18n; return ( @@ -103,9 +105,7 @@ function Footer() {
- {tMADS('or')} -
{tMADS('or')}
- {tMRA('message')}{' '} - {tMRA('messageBold')} + {tMRA('message')} {tMRA('messageBold')}
- {tPNF('whatHappened.title')} -
{tPNF('whatHappened.title')}
{tPNF('whatHappened.body')}
- {tPNF('whyHappened.title')} -
{tPNF('whyHappened.title')}
{tPNF('whyHappened.body')}
- {tPNF('whatToDo.title')} -
{tPNF('whatToDo.title')}
{tPNF('whatToDo.body')} {tPNF('whatToDo.returnButton')} diff --git a/frontend/src/pages/embed/index.jsx b/frontend/src/pages/embed/index.jsx index aaf0cf25..ba3a9403 100644 --- a/frontend/src/pages/embed/index.jsx +++ b/frontend/src/pages/embed/index.jsx @@ -20,7 +20,9 @@ import Terminal from '../../components/Terminal/index.jsx'; function EmbeddedPage() { const { t: tN } = useTranslation('translation', { keyPrefix: 'navbar' }); - const { t: tSA } = useTranslation('translation', { keyPrefix: 'snippetActions' }); + const { t: tSA } = useTranslation('translation', { + keyPrefix: 'snippetActions', + }); const params = useParams(); const dispatch = useDispatch(); const { isReady } = useSelector((state) => state.editor); @@ -66,11 +68,7 @@ function EmbeddedPage() { data-bs-theme="dark" > - + @@ -95,9 +93,7 @@ function EmbeddedPage() { variant="primary" > - - {tSA('run')} - + {tSA('run')} diff --git a/frontend/src/pages/forgot-password/index.jsx b/frontend/src/pages/forgot-password/index.jsx index 3c305c12..12b797ae 100644 --- a/frontend/src/pages/forgot-password/index.jsx +++ b/frontend/src/pages/forgot-password/index.jsx @@ -10,7 +10,9 @@ import routes from '../../routes.js'; import ForgotPasswordForm from '../../components/Forms/ForgotPasswordForm'; function ForgotPasswordPage() { - const { t: tSIF } = useTranslation('translation', { keyPrefix: 'signIn.footer' }); + const { t: tSIF } = useTranslation('translation', { + keyPrefix: 'signIn.footer', + }); const { t: tFP } = useTranslation('translation', { keyPrefix: 'forgotPass' }); return ( @@ -26,9 +28,7 @@ function ForgotPasswordPage() { {tSIF('signUpHeader')} {' '} - - {tSIF('signUpAction')} - + {tSIF('signUpAction')}
{tL('readyBoilerplates.text')}
- {tL('allLanguages.text')} -
{tL('allLanguages.text')}
- {tL('teamWork.text')} -
{tL('teamWork.text')}