Arch and components by functionality

This commit is contained in:
Belen Curcio 2020-09-29 19:22:24 -03:00
parent 7c890c7587
commit 9c3cb31b49
41 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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";

View File

@ -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;

View File

@ -0,0 +1 @@
export { default as ProductView } from "./ProductView";

View File

@ -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 (

View File

@ -1,4 +1,4 @@
import { Layout } from "components"; import { Layout } from "@components/core";
export default function Home() { export default function Home() {
return ( return (

View File

@ -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 = {

View File

@ -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"],