From ef4fa898a46f5773d1588801f8e160beaa68dd51 Mon Sep 17 00:00:00 2001 From: Meryem Yanar Date: Sat, 30 Mar 2024 11:12:20 +0000 Subject: [PATCH] Move layout into pages directory --- pages/about/contact/index.tsx | 2 +- pages/about/partners/index.tsx | 2 +- pages/about/project/index.tsx | 2 +- pages/index.tsx | 2 +- .../Layout/index.tsx => pages/layout.tsx | 0 pages/rights/contact copy 2/index.tsx | 18 ++++++++++++++++++ pages/rights/contact copy/index.tsx | 18 ++++++++++++++++++ pages/rights/contact/index.tsx | 18 ++++++++++++++++++ pages/rights/report/index.tsx | 2 +- pages/rights/resources/index.tsx | 2 +- pages/rights/training/index.tsx | 2 +- pages/search/index.tsx | 2 +- 12 files changed, 62 insertions(+), 8 deletions(-) rename src/components/Layout/index.tsx => pages/layout.tsx (100%) create mode 100644 pages/rights/contact copy 2/index.tsx create mode 100644 pages/rights/contact copy/index.tsx create mode 100644 pages/rights/contact/index.tsx diff --git a/pages/about/contact/index.tsx b/pages/about/contact/index.tsx index 8e1c83a..d019c86 100644 --- a/pages/about/contact/index.tsx +++ b/pages/about/contact/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Contact = () => { return ( diff --git a/pages/about/partners/index.tsx b/pages/about/partners/index.tsx index a1aefe4..4ead5fa 100644 --- a/pages/about/partners/index.tsx +++ b/pages/about/partners/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Partners = () => { return ( diff --git a/pages/about/project/index.tsx b/pages/about/project/index.tsx index 98d5417..6b458d4 100644 --- a/pages/about/project/index.tsx +++ b/pages/about/project/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Project = () => { return ( diff --git a/pages/index.tsx b/pages/index.tsx index 5165f0f..dd3385c 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../src/components/Layout' +import Layout from './layout' import { Link } from 'react-router-dom' const Index = () => { diff --git a/src/components/Layout/index.tsx b/pages/layout.tsx similarity index 100% rename from src/components/Layout/index.tsx rename to pages/layout.tsx diff --git a/pages/rights/contact copy 2/index.tsx b/pages/rights/contact copy 2/index.tsx new file mode 100644 index 0000000..d019c86 --- /dev/null +++ b/pages/rights/contact copy 2/index.tsx @@ -0,0 +1,18 @@ +import React from 'react' +import Layout from '../../layout' + +const Contact = () => { + return ( + + Contact + FULFIL logo + + ) +} + +export default Contact diff --git a/pages/rights/contact copy/index.tsx b/pages/rights/contact copy/index.tsx new file mode 100644 index 0000000..d019c86 --- /dev/null +++ b/pages/rights/contact copy/index.tsx @@ -0,0 +1,18 @@ +import React from 'react' +import Layout from '../../layout' + +const Contact = () => { + return ( + + Contact + FULFIL logo + + ) +} + +export default Contact diff --git a/pages/rights/contact/index.tsx b/pages/rights/contact/index.tsx new file mode 100644 index 0000000..d019c86 --- /dev/null +++ b/pages/rights/contact/index.tsx @@ -0,0 +1,18 @@ +import React from 'react' +import Layout from '../../layout' + +const Contact = () => { + return ( + + Contact + FULFIL logo + + ) +} + +export default Contact diff --git a/pages/rights/report/index.tsx b/pages/rights/report/index.tsx index 0c261e9..de08e75 100644 --- a/pages/rights/report/index.tsx +++ b/pages/rights/report/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Report = () => { return ( diff --git a/pages/rights/resources/index.tsx b/pages/rights/resources/index.tsx index f9c3b94..79d3ee7 100644 --- a/pages/rights/resources/index.tsx +++ b/pages/rights/resources/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Resources = () => { return ( diff --git a/pages/rights/training/index.tsx b/pages/rights/training/index.tsx index c06f2b1..8e08029 100644 --- a/pages/rights/training/index.tsx +++ b/pages/rights/training/index.tsx @@ -1,5 +1,5 @@ import React from 'react' -import Layout from '../../../src/components/Layout' +import Layout from '../../layout' const Training = () => { return ( diff --git a/pages/search/index.tsx b/pages/search/index.tsx index fb2f6da..7ea3a8a 100644 --- a/pages/search/index.tsx +++ b/pages/search/index.tsx @@ -3,7 +3,7 @@ import SearchBar from './components/SearchBar' import ResultsBar from './components/ResultsBar' import Filters from './components/Filters' import CaseEntry from './components/CaseEntry' -import Layout from '../../src/components/Layout' +import Layout from '../layout' import { API_URL, API_KEY } from '../../api/url' import { createClient } from '@supabase/supabase-js'