diff --git a/.eslintrc.js b/.eslintrc.js index f0c307f..869e67d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,7 +5,6 @@ module.exports = { 'react/jsx-pascal-case': [ 'warn', { - allowAllCaps: true, ignore: [], }, ], diff --git a/src/common/SEO/SEO.tsx b/src/common/Seo/Seo.tsx similarity index 95% rename from src/common/SEO/SEO.tsx rename to src/common/Seo/Seo.tsx index 3652ca8..ca22a8a 100644 --- a/src/common/SEO/SEO.tsx +++ b/src/common/Seo/Seo.tsx @@ -13,7 +13,7 @@ export interface SEOProps { description?: string; } -const SEO = ({ title, description = DEFAULT_DESCRIPTION }: SEOProps) => { +const Seo = ({ title, description = DEFAULT_DESCRIPTION }: SEOProps) => { const { asPath } = useRouter(); const formattedTitle = title ? `${title} | ${NAME}` : NAME; return ( @@ -51,4 +51,4 @@ const SEO = ({ title, description = DEFAULT_DESCRIPTION }: SEOProps) => { ); }; -export default SEO; +export default Seo; diff --git a/src/features/ErrorPage/ErrorPage.tsx b/src/features/ErrorPage/ErrorPage.tsx index fe52cae..64f8c82 100644 --- a/src/features/ErrorPage/ErrorPage.tsx +++ b/src/features/ErrorPage/ErrorPage.tsx @@ -4,7 +4,7 @@ import { ErrorProps } from 'next/error'; import { Box, Typography } from '@material-ui/core'; import Layout from 'common/Layout/Layout'; import Section from 'common/Section/Section'; -import SEO from 'common/SEO/SEO'; +import Seo from 'common/Seo/Seo'; const getTitleForStatusCode = (statusCode: number): string => { switch (statusCode) { @@ -19,7 +19,7 @@ const ErrorPage: NextPage = ({ statusCode, title }: ErrorProps) => { const _title = title ?? getTitleForStatusCode(statusCode); return ( - + { return ( - +
diff --git a/src/features/PrivacyPolicyPage/PrivacyPolicyPage.tsx b/src/features/PrivacyPolicyPage/PrivacyPolicyPage.tsx index e1e95ce..368eaf5 100644 --- a/src/features/PrivacyPolicyPage/PrivacyPolicyPage.tsx +++ b/src/features/PrivacyPolicyPage/PrivacyPolicyPage.tsx @@ -4,7 +4,7 @@ import { makeStyles } from '@material-ui/core/styles'; import { Container, Typography, Divider, Link } from '@material-ui/core'; import { Alert } from '@material-ui/lab'; import Layout from 'common/Layout/Layout'; -import SEO from 'common/SEO/SEO'; +import Seo from 'common/Seo/Seo'; const DESCRIPTION = 'Polityka prywatności opisuje zasady przetwarzania przez zdamegzaminzawodowy.pl informacji na Twój temat, w tym danych osobowych oraz ciasteczek, czyli tzw. cookies.'; @@ -13,7 +13,7 @@ function PrivacyPolicyPage() { const classes = useStyles(); return ( - + { return ( -