-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:sarthakjdev/wapi.js
- Loading branch information
Showing
16 changed files
with
6,244 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
|
||
}; | ||
reactStrictMode: true, | ||
compiler: { | ||
removeConsole: process.env.NODE_ENV === 'production' | ||
} | ||
} | ||
|
||
export default nextConfig; | ||
export default nextConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
'use client' | ||
|
||
import Link from 'next/link' | ||
import { Button } from '@wapijs/ui' | ||
import { ArrowPathIcon, ChatBubbleBottomCenterIcon } from '@heroicons/react/24/solid' | ||
|
||
export default function GlobalError({ | ||
reset, | ||
error | ||
}: { | ||
error: Error & { digest?: string } | ||
reset: () => void | ||
}) { | ||
console.log({ error: error, stack: error.stack }) | ||
return ( | ||
<div className="flex h-[70vh] min-h-screen flex-col items-center justify-center gap-4"> | ||
<h2 className="mx-auto text-center text-xl text-gray-900"> | ||
Oops! Something went wrong{' '} | ||
</h2> | ||
<div className="flex gap-4"> | ||
<Button onClick={() => reset()} size={'medium'}> | ||
<ArrowPathIcon className="h-6 w-6 text-white" /> Try again | ||
</Button> | ||
<Link title="contact-support" href={'/'} rel=""> | ||
<Button size={'medium'} variant={'outline'}> | ||
<ChatBubbleBottomCenterIcon className="h-6 w-6 text-white" /> Contact | ||
Support | ||
</Button> | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.