Skip to content

Commit

Permalink
Revert "[feat] : Error page added" (rupali-codes#1256)
Browse files Browse the repository at this point in the history
  • Loading branch information
rupali-codes authored Jul 8, 2023
1 parent 191ec52 commit 08aa2e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 35 deletions.
32 changes: 0 additions & 32 deletions components/Errorpage/not-found.tsx

This file was deleted.

5 changes: 2 additions & 3 deletions pages/[subcategory]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { useRouter } from 'next/router'
import Head from 'next/head'
import useFilterDB from 'hooks/useFilterDB'
import CardsList from 'components/Cards/CardsList'
// import ComingSoon from 'components/NewIssue/NewIssue'
import ErrorPage from 'components/Errorpage/not-found'
import ComingSoon from 'components/NewIssue/NewIssue'

const SubCategory = () => {
const router = useRouter()
Expand All @@ -19,7 +18,7 @@ const SubCategory = () => {
if (filterDB.length > 0) {
content = <CardsList cards={filterDB[0]} />
} else {
content = <ErrorPage />
content = <ComingSoon />
}

return (
Expand Down

0 comments on commit 08aa2e2

Please sign in to comment.