forked from crowetic/commerce
Arch and components by functionality
This commit is contained in:
parent
7c890c7587
commit
9c3cb31b49
@ -1,7 +1,7 @@
|
||||
import cn from "classnames";
|
||||
import React, { FunctionComponent } from "react";
|
||||
import s from "./Footer.module.css";
|
||||
import { Container } from "ui";
|
||||
import { Container } from "@components/ui";
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
@ -1,8 +1,8 @@
|
||||
import cn from "classnames";
|
||||
import React, { FunctionComponent } from "react";
|
||||
import s from "./Layout.module.css";
|
||||
import { Navbar, Featurebar } from "components";
|
||||
import { Container } from "ui";
|
||||
import { Navbar, Featurebar } from "@components/core";
|
||||
import { Container } from "@components/ui";
|
||||
|
||||
interface Props {
|
||||
className?: string;
|
@ -1,8 +1,8 @@
|
||||
import cn from "classnames";
|
||||
import React, { FunctionComponent } from "react";
|
||||
import s from "./Navbar.module.css";
|
||||
import { Logo, Container } from "ui";
|
||||
import { Avatar, Searchbar } from "components";
|
||||
import { Logo, Container } from "@components/ui";
|
||||
import { Avatar, Searchbar } from "@components/core";
|
||||
interface Props {
|
||||
className?: string;
|
||||
children?: any;
|
@ -2,6 +2,5 @@ export { default as Avatar } from "./Avatar";
|
||||
export { default as Footer } from "./Footer";
|
||||
export { default as Navbar } from "./Navbar";
|
||||
export { default as Searchbar } from "./Searchbar";
|
||||
export { default as ProductView } from "./ProductView";
|
||||
export { default as Layout } from "./Layout";
|
||||
export { default as Featurebar } from "./Featurebar";
|
@ -1,7 +1,7 @@
|
||||
import cn from "classnames";
|
||||
import React, { FunctionComponent } from "react";
|
||||
import s from "./ProductView.module.css";
|
||||
import { Button } from "ui";
|
||||
import { Button } from "@components/ui";
|
||||
|
||||
interface ProductData {
|
||||
description: string;
|
1
components/product/index.ts
Normal file
1
components/product/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export { default as ProductView } from "./ProductView";
|
@ -1,4 +1,4 @@
|
||||
import "@styles/global.css";
|
||||
import "@assets/global.css";
|
||||
|
||||
export default function MyApp({ Component, pageProps }) {
|
||||
return (
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Layout } from "components";
|
||||
import { Layout } from "@components/core";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { useRouter } from "next/router";
|
||||
import { ProductView, Layout } from "components";
|
||||
import ErrorPage from "next/error";
|
||||
import { Layout } from "@components/core";
|
||||
import { ProductView } from "@components/product";
|
||||
|
||||
export async function getStaticProps() {
|
||||
const productData = {
|
||||
|
@ -16,7 +16,7 @@
|
||||
"jsx": "preserve",
|
||||
"paths": {
|
||||
"@components/*": ["components/*"],
|
||||
"@styles/*": ["styles/*"]
|
||||
"@assets/*": ["assets/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user