Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion dashboard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ExportHistoryPage } from './pages/ExportHistoryPage';
import { NotificationSearchPage } from './pages/NotificationSearchPage';
import { NotificationPreferencesPage } from './pages/NotificationPreferencesPage';
import { TemplatesPage } from './pages/TemplatesPage';
import { ChannelDetailsPage } from './pages/ChannelDetailsPage';
import { ThemeToggle } from './components/ThemeToggle';
import { useTheme } from './hooks/useTheme';
import { DeliveryHeatmap } from './components/DeliveryHeatmap';
Expand All @@ -20,7 +21,8 @@ type Tab =
| 'export-history'
| 'search'
| 'preferences'
| 'templates';
| 'templates'
| 'channels';

export function App() {
const [tab, setTab] = useState<Tab>('explorer');
Expand Down Expand Up @@ -120,6 +122,15 @@ export function App() {
>
Templates
</button>
<button
role="tab"
type="button"
aria-selected={tab === 'channels'}
className={`app-tabs__btn${tab === 'channels' ? ' app-tabs__btn--active' : ''}`}
onClick={() => setTab('channels')}
>
Channel Details
</button>
</nav>

{tab === 'explorer' && (
Expand All @@ -135,6 +146,7 @@ export function App() {
{tab === 'search' && <NotificationSearchPage />}
{tab === 'preferences' && <NotificationPreferencesPage />}
{tab === 'templates' && <TemplatesPage />}
{tab === 'channels' && <ChannelDetailsPage />}
</div>
);
}
Loading