Skip to content

Commit

Permalink
fixed many errors and bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMelior committed Mar 27, 2024
1 parent 983ef9f commit de178e4
Show file tree
Hide file tree
Showing 55 changed files with 4,474 additions and 6,734 deletions.
23 changes: 12 additions & 11 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
'next/core-web-vitals',
'plugin:react/recommended',
'plugin:import/recommended',
'plugin:prettier/recommended',
'plugin:storybook/recommended',
],
parser: '@typescript-eslint/parser',
Expand All @@ -22,20 +21,22 @@ module.exports = {
plugins: ['@typescript-eslint'],
rules: {
indent: [2, 'tab', { SwitchCase: 1 }],
'prettier/prettier': [
'error',
{
singleQuote: true,
jsxSingleQuote: true,
useTabs: true,
endOfLine: 'auto',
parser: 'flow',
},
],
// 'prettier/prettier': [
// 'error',
// {
// singleQuote: true,
// jsxSingleQuote: true,
// useTabs: true,
// endOfLine: 'auto',
// parser: 'flow',
// },
// ],
'react/jsx-indent': [2, 'tab'],
'react/display-name': 'off',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react-hooks/rules-of-hooks': 'off',
'@next/next/no-img-element': 'off',
},
globals: {
IS_DEV: true,
Expand Down
14 changes: 12 additions & 2 deletions app/product/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
import { ProductPage } from '@/views';
import { FC } from 'react';

const Product: FC = () => {
return <ProductPage />;
export interface ProductPageProps {
params: { id: string };
}

// export async function generateStaticParams() {
// return productData.map((post) => ({
// product: post.id,
// }));
// }

const Product: FC<ProductPageProps> = ({ params }) => {
return <ProductPage params={params} />;
};

export default Product;
Loading

0 comments on commit de178e4

Please sign in to comment.