Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

ErrorPage.tsx 646B

1234567891011121314151617181920212223
  1. // app/not-found.tsx
  2. "use client";
  3. import { useRouter } from 'next/navigation';
  4. import { Button, Result } from "antd";
  5. export default function NotFound() {
  6. const router = useRouter();
  7. return (
  8. <div className="flex justify-center items-center min-h-screen bg-white !w-full">
  9. <Result
  10. status="warning"
  11. title="There are some problems with your operation."
  12. extra={
  13. <Button type="primary" key="console" onClick={() => router.back()}>
  14. Go Back
  15. </Button>
  16. }
  17. />
  18. </div>
  19. );
  20. }