remove IndexErrorCode component

This commit is contained in:
2025-10-10 14:12:37 +07:00
parent 27c901d08f
commit 3ce9b3772d
2 changed files with 75 additions and 85 deletions

View File

@@ -1,31 +0,0 @@
import React, { memo, useEffect } from 'react';
import { useNavigate } from 'react-router-dom';
import { useBreadcrumb } from '../../../layout/LayoutBreadcrumb';
import { Typography } from 'antd';
const { Text } = Typography;
const IndexErrorCode = memo(function IndexErrorCode() {
const navigate = useNavigate();
const { setBreadcrumbItems } = useBreadcrumb();
useEffect(() => {
const token = localStorage.getItem('token');
if (token) {
setBreadcrumbItems([
{ title: <Text strong style={{ fontSize: '14px' }}> Master</Text> },
{ title: <Text strong style={{ fontSize: '14px' }}>Error Code</Text> }
]);
} else {
navigate('/signin');
}
}, []);
return (
<div>
<h1>Error Code Page</h1>
</div>
);
});
export default IndexErrorCode;