From fcc4c3374d85b33755f852bcc559db0a8eb5115a Mon Sep 17 00:00:00 2001
From: Blaster4385 <venkateshchaturvedi12@gmail.com>
Date: Thu, 25 Aug 2022 11:44:08 +0530
Subject: Misc changes and add more translation

---
 admin/src/components/Error/Error.jsx | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 admin/src/components/Error/Error.jsx

(limited to 'admin/src/components/Error/Error.jsx')

diff --git a/admin/src/components/Error/Error.jsx b/admin/src/components/Error/Error.jsx
new file mode 100644
index 0000000..110999b
--- /dev/null
+++ b/admin/src/components/Error/Error.jsx
@@ -0,0 +1,29 @@
+import React, { useEffect } from 'react'
+import { useNavigate } from 'react-router-dom'
+import { initialUserData } from '../../constants/userData'
+import { userContext } from '../../context/User'
+
+import styles from './Error.module.css'
+
+const Error = ({ message }) => {
+  const navigate = useNavigate()
+  useEffect(() => {
+    setTimeout(() => {
+      navigate('/')
+    }, 3000)
+  }, [])
+
+  return (
+    <>
+      <div className={styles.error}>
+        <img
+          src={`${process.env.PUBLIC_URL}/assets/images/error.svg`}
+          className={styles.error__image}
+        />
+        <h1 className={styles.error__title}>{message}</h1>
+      </div>
+    </>
+  )
+}
+
+export default Error
-- 
cgit 

