fix(f4): expose recurrence state and close ci type gaps
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export type IconName =
|
||||
| 'home' | 'map' | 'layers' | 'calendar' | 'clipboard' | 'alert'
|
||||
| 'history' | 'users' | 'shield' | 'audit' | 'logout' | 'menu'
|
||||
| 'plus' | 'search' | 'edit' | 'chevron' | 'check' | 'key' | 'upload' | 'mail';
|
||||
| 'plus' | 'search' | 'edit' | 'chevron' | 'check' | 'key' | 'upload' | 'mail' | 'lock';
|
||||
|
||||
export function Icon({ name, size = 18 }: { name: IconName; size?: number }) {
|
||||
const paths: Record<IconName, React.ReactNode> = {
|
||||
@@ -25,6 +25,7 @@ export function Icon({ name, size = 18 }: { name: IconName; size?: number }) {
|
||||
key: <><circle cx="8" cy="15" r="4"/><path d="m11 12 9-9M15 8l3 3M17 6l2 2"/></>,
|
||||
upload: <><path d="M12 16V4"/><path d="m7 9 5-5 5 5"/><path d="M5 20h14"/></>,
|
||||
mail: <><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></>,
|
||||
lock: <><rect x="5" y="10" width="14" height="10" rx="2"/><path d="M8 10V7a4 4 0 0 1 8 0v3"/></>,
|
||||
};
|
||||
return (
|
||||
<svg className="icon" width={size} height={size} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
import './api';
|
||||
|
||||
declare module './api' {
|
||||
interface InspectionFinding {
|
||||
isRecurrence: boolean;
|
||||
recurrenceOfFindingId: string | null;
|
||||
recurrenceOfFindingCode: string | null;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Reference in New Issue
Block a user