switch to a const for defaultCopyProps

This commit is contained in:
Ed Chalstrey 2022-06-20 16:04:43 +01:00
parent f2a7f86d92
commit 86c535d27b

View File

@ -19,12 +19,14 @@ function initCopyProps(options?: Partial<CopyProps>): CopyProps {
};
}
const defaultCopyProps: CopyProps = initCopyProps();
interface CategoryViewProps {
intro: string;
building: Building;
mode: 'view' | 'edit' | 'multi-edit';
edited: boolean;
copy: CopyProps;
copy: defaultCopyProps;
onChange: (key: string, value: any) => void;
onVerify: (slug: string, verify: boolean, x: number, y: number) => void;