Skip to content

Commit

Permalink
feat : fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
SHABIN-K committed Sep 5, 2023
1 parent a06d73b commit 3e7bd12
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 23 deletions.
8 changes: 3 additions & 5 deletions app/(root)/(auth)/error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import { Empty } from "@/components/ui/Empty";

const Error = () => {
return <Empty label="Something went wrong." />;
};

export default Error;
export default function Error({ error, reset }) {
return <Empty label="Something went wrong." error={error} reset={reset} />;
}
8 changes: 3 additions & 5 deletions app/(root)/(dashboard)/error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import { Empty } from "@/components/ui/Empty";

const Error = () => {
return <Empty label="Something went wrong." />;
};

export default Error;
export default function Error({ error, reset }) {
return <Empty label="Something went wrong." error={error} reset={reset} />;
}
8 changes: 3 additions & 5 deletions app/(root)/(home)/error.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import { Empty } from "@/components/ui/Empty";

const Error = () => {
return <Empty label="Something went wrong." />;
};

export default Error;
export default function Error({ error, reset }) {
return <Empty label="Something went wrong." error={error} reset={reset} />;
}
1 change: 1 addition & 0 deletions app/(root)/test/page.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
////////////////////
9 changes: 4 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"eslint-config-next": "13.4.9",
"next": "^13.4.19",
"next-auth": "^4.23.1",
"postcss": "8.4.25",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.32.5",
Expand Down
5 changes: 3 additions & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
}
}

0 comments on commit 3e7bd12

Please sign in to comment.