Skip to content

Commit

Permalink
Move GoalProps to types/goals (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Aug 27, 2020
1 parent 0df01a3 commit 8c14b92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/goals/MergeDupGoal/MergeDups.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
import {
Goal,
Tools,
GoalOption,
GoalType,
generateGuid,
Tools,
} from "../../types/goals";
import { User } from "../../types/user";
import { Word } from "../../types/word";

//interface for component state
export interface MergeDupProps {
goal?: Goal;
}

//interfaces for component state
export interface MergeDupData {
plannedWords: Word[][];
}

export interface MergeStepData {
words: Word[];
}
Expand Down
7 changes: 4 additions & 3 deletions src/types/goals.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { User } from "./user";
import { MergeStepData, MergeDupData } from "../goals/MergeDupGoal/MergeDups";
import { MergeDupProps } from "../goals/MergeDupGoal/MergeDups";
import {
CreateCharInvData,
CreateCharInvStepData,
Expand All @@ -19,14 +18,16 @@ export enum Tools {
CharCreate,
}

export type GoalProps = MergeDupProps;

export type GoalData = MergeDupData | CreateCharInvData | {}; // | OtherTypes

export type MockGoalStepType = {};

export type GoalStep = MergeStepData | CreateCharInvStepData; // | OtherTypes

export interface GoalProps {
goal?: Goal;
}

export interface GoalViewState {
state: GoalsState;
}
Expand Down

0 comments on commit 8c14b92

Please sign in to comment.