switch to a const for defaultCopyProps
This commit is contained in:
parent
f2a7f86d92
commit
86c535d27b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user