forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
36 lines (30 loc) · 801 Bytes
/
Copy pathApp.tsx
File metadata and controls
36 lines (30 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import { useEffect, useRef } from "react";
import { registerServiceWorker } from "./utils/sw-register";
import { SplitDetailPage } from "./pages/SplitView/SplitDetailPage";
function App() {
const announceRef = useRef<HTMLDivElement>(null);
// Function to announce messages to screen readers
useEffect(() => {
registerServiceWorker();
}, []);
return (
<>
{/* Live region for screen reader announcements */}
<div
ref={announceRef}
role="status"
aria-live="polite"
aria-atomic="true"
className="sr-only"
/>
<main
id="main-content"
className="antialiased text-gray-900 bg-gray-50 min-h-screen"
tabIndex={-1}
>
<SplitDetailPage />
</main>
</>
);
}
export default App;