15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
export type DigitalTab = 'home' | 'missions' | 'skills' | 'reports' | 'settings';
|
|
|
|
export type DigitalNavigationTarget = {
|
|
tab: DigitalTab;
|
|
date?: string | null;
|
|
missionId?: string | null;
|
|
taskId?: string | null;
|
|
skillId?: string | null;
|
|
reportSection?: string | null;
|
|
};
|
|
|
|
export function domSafeId(value: string): string {
|
|
return value.replace(/[^a-zA-Z0-9_-]/g, '_');
|
|
}
|