diff --git a/.gitignore b/.gitignore index 8f322f0d8..79fff97a3 100644 --- a/.gitignore +++ b/.gitignore @@ -24,12 +24,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts +.next/ diff --git a/components/AllItemsSection.tsx b/components/AllItemsSection.tsx index 8ed589f3a..32e3962ce 100644 --- a/components/AllItemsSection.tsx +++ b/components/AllItemsSection.tsx @@ -1,8 +1,8 @@ import { useEffect, useState } from 'react'; import { getProducts } from '../lib/api'; -import ItemCard from './ItemCard'; +import ItemCard from '@components/ItemCard'; import '../style/Items.css'; -import SearchIcon from '../public/svgs/ic_search.svg'; +import SearchIcon from '@public/svgs/ic_search.svg'; import { Product, ProductListResponse, diff --git a/components/BestItemsSection.tsx b/components/BestItemsSection.tsx index c704b409b..6eb1b9331 100644 --- a/components/BestItemsSection.tsx +++ b/components/BestItemsSection.tsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; -import { getProducts } from '../lib/api'; -import ItemCard from './ItemCard'; +import { getProducts } from '@lib/api'; +import ItemCard from '@components/ItemCard'; import '../style/Items.css'; import { Product, diff --git a/components/DropdownMenu.tsx b/components/DropdownMenu.tsx index 449e76552..9069f244e 100644 --- a/components/DropdownMenu.tsx +++ b/components/DropdownMenu.tsx @@ -1,7 +1,7 @@ import React, { useState } from 'react'; -import SortIcon from '../public/svgs/ic_sort.svg'; -import styles from '../styles/DropdownMenu.module.css'; -import { ArticleOrderBy } from './types/articleTypes'; +import SortIcon from '@public/svgs/ic_sort.svg'; +import styles from '@styles/DropdownMenu.module.css'; +import { ArticleOrderBy } from '@components/types/articleTypes'; interface DropdownMenuProps { onSelection: (Option: ArticleOrderBy) => void; diff --git a/components/FileInput.tsx b/components/FileInput.tsx index af23b5217..2823e1142 100644 --- a/components/FileInput.tsx +++ b/components/FileInput.tsx @@ -1,7 +1,7 @@ import { ChangeEvent, useEffect, useRef, useState } from 'react'; -import styles from '../styles/FileInput.module.css'; -import PlusIcon from '../public/svgs/ic_plus.svg'; -import DeleteIcon from '../public/svgs/ic_X.svg'; +import styles from '@styles/FileInput.module.css'; +import PlusIcon from '@public/svgs/ic_plus.svg'; +import DeleteIcon from '@public/svgs/ic_X.svg'; interface FileInputProps { name: string; @@ -56,6 +56,7 @@ function FileInput({ name, value, initialPreview, onChange }: FileInputProps) { onChange={handleChange} ref={inputRef} disabled={isImageValid} + style={{ display: 'none' }} />