MCPcopy Create free account
hub / github.com/LQF-dev/smart-hr / LoadingFallback

Function LoadingFallback

front/src/App.tsx:26–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25// 加载中组件
26const LoadingFallback = () => (
27 <div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
28 <Spin size="large" tip="加载中..." />
29 </div>
30)
31
32// 受保护的路由组件
33const ProtectedRoute = ({ children, allowedRoles }: { children: React.ReactNode; allowedRoles?: string[] }) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected