Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hxhxhx88 committed Feb 20, 2024
1 parent 874e1e8 commit 1a2715b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/frontend/src/component/panel/menu/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type Action = {
export function useComponentActions(entityId: EntityId, componentId: ComponentId): Action[] {
const sliceIndex = useRenderStore(s => s.sliceIndex);

const seperateComponent = useAnnoStore(s => s.seperateComponent);
const separateComponent = useAnnoStore(s => s.separateComponent);
const deleteComponents = useAnnoStore(s => s.deleteComponents);
const startManipulation = useRenderStore(s => s.manipulate.start);

Expand All @@ -47,7 +47,7 @@ export function useComponentActions(entityId: EntityId, componentId: ComponentId
fn: () => {
const eid = uuidv4();
const cid = uuidv4();
seperateComponent({sliceIndex, entityId, componentId, newEntityId: eid, newComponentId: cid});
separateComponent({sliceIndex, entityId, componentId, newEntityId: eid, newComponentId: cid});
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/state/annotate/annotation-broadcast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
DeleteEntitiesInput,
DeletePolychainVertexInput,
PasteInput,
SeperateComponentInput,
SeparateComponentInput,
SetEntityCategoryInput,
SetPolychainVertexBezierInput,
StateManipulation,
Expand Down Expand Up @@ -70,7 +70,7 @@ function useAnnoBroadcast(): StateManipulation {
cats.delete(key);
},

seperateComponent: (input: SeperateComponentInput) => {
separateComponent: (input: SeparateComponentInput) => {
const {sliceIndex: sidx, entityId: eid, componentId: cid, newEntityId, newComponentId} = input;

const comp = comps.get(cid);
Expand Down
6 changes: 3 additions & 3 deletions app/frontend/src/state/annotate/annotation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export type StateManipulation = {
addComponents: (input: AddComponentsInput) => void;
transferComponent: (input: TransferComponentInput) => void;
deleteComponents: (input: DeleteComponentsInput) => void;
seperateComponent: (input: SeperateComponentInput) => void; // TODO(xu): correct typo
separateComponent: (input: SeparateComponentInput) => void;
updatePolychainVertices: (input: UpdatePolychainVerticesInput) => void;
deletePolychainVertex: (input: DeletePolychainVertexInput) => void;
setPolychainVertexBezier: (input: SetPolychainVertexBezierInput) => void;
Expand Down Expand Up @@ -94,7 +94,7 @@ export type DeleteComponentsInput = {
components: [EntityId, ComponentId][];
};

export type SeperateComponentInput = {
export type SeparateComponentInput = {
sliceIndex: SliceIndex;
entityId: EntityId;
componentId: ComponentId;
Expand Down Expand Up @@ -210,7 +210,7 @@ export const useStore = create<State>()(
});
},

seperateComponent: (input: SeperateComponentInput) => {
separateComponent: (input: SeparateComponentInput) => {
set(s => {
const {sliceIndex, entityId, componentId, newEntityId, newComponentId} = input;

Expand Down

0 comments on commit 1a2715b

Please sign in to comment.