Route guards, WS lifecycle, ticket stats. Refs EventHub/EventHubFrontAdmin#3

This commit is contained in:
2026-07-07 21:03:46 +03:00
parent 896e3bcd35
commit ecfa1a66bb
18 changed files with 1331 additions and 955 deletions
+21
View File
@@ -0,0 +1,21 @@
import React from 'react';
import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';
const ForbiddenPage: React.FC = () => {
const navigate = useNavigate();
return (
<Result
status="403"
title="403"
subTitle="У вас нет доступа к этому разделу."
extra={
<Button type="primary" onClick={() => navigate('/dashboard')}>
На дашборд
</Button>
}
/>
);
};
export default ForbiddenPage;