refactor: general refactor

make barrel files .ts instead of .tsx
move layouts to components directory
This commit is contained in:
zyachel 2023-10-29 00:11:28 +05:30
parent 40eb8a372b
commit 12eaa741ab
12 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,5 @@
import { ReactNode } from 'react';
import Link from 'next/link'; import Link from 'next/link';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import styles from 'src/styles/modules/components/error/error-info.module.scss'; import styles from 'src/styles/modules/components/error/error-info.module.scss';

View file

@ -1,6 +1,6 @@
import Link from 'next/link'; import Link from 'next/link';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import styles from '../styles/modules/layout/footer.module.scss'; import styles from 'src/styles/modules/layout/footer.module.scss';
const links = [ const links = [
{ path: '/about', text: 'About' }, { path: '/about', text: 'About' },

View file

@ -1,6 +1,6 @@
import Link from 'next/link'; import Link from 'next/link';
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import styles from 'src/styles/modules/pages/about/about.module.scss'; import styles from 'src/styles/modules/pages/about/about.module.scss';
const About = () => { const About = () => {

View file

@ -1,5 +1,5 @@
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import styles from 'src/styles/modules/pages/contact/contact.module.scss'; import styles from 'src/styles/modules/pages/contact/contact.module.scss';
const Contact = () => { const Contact = () => {

View file

@ -1,5 +1,5 @@
import { GetServerSideProps, InferGetServerSidePropsType } from 'next'; import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import ErrorInfo from 'src/components/error/ErrorInfo'; import ErrorInfo from 'src/components/error/ErrorInfo';
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Results from 'src/components/find'; import Results from 'src/components/find';

View file

@ -1,6 +1,6 @@
import { GetServerSideProps, InferGetServerSidePropsType } from 'next'; import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import ErrorInfo from 'src/components/error/ErrorInfo'; import ErrorInfo from 'src/components/error/ErrorInfo';
import Media from 'src/components/media/Media'; import Media from 'src/components/media/Media';
import { Basic, Credits, DidYouKnow, Info, Bio, KnownFor } from 'src/components/name'; import { Basic, Credits, DidYouKnow, Info, Bio, KnownFor } from 'src/components/name';

View file

@ -1,5 +1,5 @@
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import packageInfo from 'src/../package.json'; import packageInfo from 'src/../package.json';
import styles from 'src/styles/modules/pages/privacy/privacy.module.scss'; import styles from 'src/styles/modules/pages/privacy/privacy.module.scss';

View file

@ -1,6 +1,6 @@
import { GetServerSideProps, InferGetServerSidePropsType } from 'next'; import { GetServerSideProps, InferGetServerSidePropsType } from 'next';
import Meta from 'src/components/meta/Meta'; import Meta from 'src/components/meta/Meta';
import Layout from 'src/layouts/Layout'; import Layout from 'src/components/layout';
import ErrorInfo from 'src/components/error/ErrorInfo'; import ErrorInfo from 'src/components/error/ErrorInfo';
import Media from 'src/components/media/Media'; import Media from 'src/components/media/Media';
import { Basic, Cast, DidYouKnow, Info, MoreLikeThis, Reviews } from 'src/components/title'; import { Basic, Cast, DidYouKnow, Info, MoreLikeThis, Reviews } from 'src/components/title';