Skip to content

Commit

Permalink
applied comments
Browse files Browse the repository at this point in the history
  • Loading branch information
klakhov committed Feb 15, 2024
1 parent 5cc875e commit 8f608e2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 31 deletions.
32 changes: 16 additions & 16 deletions cvat-core/src/server-response-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,23 +297,23 @@ export interface SerializedQualityReportData {
created_date?: string;
gt_last_updated?: string;
summary?: {
frame_count: number,
frame_share: number,
conflict_count: number,
valid_count: number,
ds_count: number,
gt_count: number,
error_count: number,
warning_count: number,
frame_count: number;
frame_share: number;
conflict_count: number;
valid_count: number;
ds_count: number;
gt_count: number;
error_count: number;
warning_count: number;
conflicts_by_type: {
extra_annotation: number,
missing_annotation: number,
mismatching_label: number,
low_overlap: number,
mismatching_direction: number,
mismatching_attributes: number,
mismatching_groups: number,
covered_annotation: number,
extra_annotation: number;
missing_annotation: number;
mismatching_label: number;
low_overlap: number;
mismatching_direction: number;
mismatching_attributes: number;
mismatching_groups: number;
covered_annotation: number;
}
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ import QualitySettingsModal from '../shared/quality-settings-modal';
const core = getCore();

interface Props {
task: Task,
onJobUpdate: (job: Job) => void
task: Task;
onJobUpdate: (job: Job) => void;
}

interface State {
fetching: boolean,
taskReport: QualityReport | null,
jobsReports: QualityReport[],
fetching: boolean;
taskReport: QualityReport | null;
jobsReports: QualityReport[];
qualitySettings: {
settings: QualitySettings | null,
fetching: boolean,
visible: boolean,
settings: QualitySettings | null;
fetching: boolean;
visible: boolean;
},
}

Expand Down
7 changes: 0 additions & 7 deletions cvat-ui/src/utils/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ export function useIsMounted(): () => boolean {
return useCallback(() => ref.current, []);
}

export function useStateIfMounted<T>(defaultValue: T): [T, (t: T) => void] {
const isMounted = useIsMounted();
const [state, setState] = useState<T>(defaultValue);
const wrappedSetState = useCallback((val: T) => isMounted() && setState(val), []);
return [state, wrappedSetState];
}

export type Plugin = {
component: CallableFunction;
weight: number;
Expand Down

0 comments on commit 8f608e2

Please sign in to comment.