diff --git a/client/src/App.tsx b/client/src/App.tsx index 8f67f1b..0e9de57 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -9,6 +9,7 @@ import { Taxes } from './sections/Taxes'; import { Finance } from './sections/Finance'; import { DataStatus } from './sections/DataStatus'; import { Login } from './components/Login'; +import { Empty } from './components/ui'; import { readSession, seesAdminSections, seesSection, SESSION_CHECK_MS, type SessionState } from './lib/session'; import { enrollFace, faceLoginPossible } from './lib/passkey'; @@ -327,12 +328,23 @@ export default function App() {

)} + {/* Разделы закрыты все до одного: без этой строки человек видел бы пустой + экран «Люди» и решил, что панель сломалась (нашёл рецензент на fable). */} + {visibleSections.length === 0 ? ( + + Вам пока не открыт ни один раздел панели. Обратитесь к администратору — + доступ выдаётся на служебной странице. + + ) : ( + <> {section === 'people' && } {section === 'cash' && } {section === 'deposits' && } {section === 'taxes' && } {section === 'finance' && } {section === 'data' && } + + )}