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