Skip to content

Commit 5c18866

Browse files
committed
GH-391 Clean-up file structure
* Fix "Wishlist" page URL typo * Separate page routes and components * Simplify page routes
1 parent 3c7a7dd commit 5c18866

File tree

22 files changed

+33
-12
lines changed

22 files changed

+33
-12
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import type { NextPage } from 'next';
2+
import Head from 'next/head';
3+
4+
const Whishlist: NextPage = () => {
5+
return (
6+
<>
7+
<Head>
8+
<title>Криптовалюта • B4CKSP4CE</title>
9+
<meta name="description" content="Список вещей, которые Бэкспейс хочет получить" />
10+
<meta name="keywords" content="b4cksp4ce, backspace, бэкспейс, хакспейс, хакспейс спб" />
11+
</Head>
12+
<h1>Пожертвования в криптовалюте</h1>
13+
<article>
14+
<p>WIP</p>
15+
</article>
16+
</>
17+
)
18+
}
19+
20+
export default Whishlist;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Cryptocurrency';
File renamed without changes.

src/components/Home/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Home';

src/components/Layout/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Head from 'next/head';
22
import React, { ReactElement } from 'react'
3-
import Header from '@/components/Header';
3+
import Header from '@/shared/components/Header';
44
import css from './Layout.module.scss';
55

66
export default function Layout({ children }) {
File renamed without changes.

src/pages/Where/Where.tsx renamed to src/components/Where/Where.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Head from 'next/head';
22
import type { NextPage } from 'next';
33
import css from './Where.module.scss';
4-
import Image from '@/components/Image';
4+
import Image from '@/shared/components/Image';
55
import EntrancePhoto from '@/assets/entrance.jpg';
66

77
const Where: NextPage = () => {

src/components/Where/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Where';
File renamed without changes.

src/components/Wishlist/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './Wishlist';

0 commit comments

Comments
 (0)