Skip to content

Commit

Permalink
Remove GoalSwitcher (unused) (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Jan 12, 2021
1 parent 8ba4266 commit 9818926
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 120 deletions.
2 changes: 1 addition & 1 deletion src/components/App/DefaultState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defaultState as reviewEntriesState } from "../../goals/ReviewEntries/Re
import { defaultProject } from "../../types/project";
import { defaultState as loginState } from "../Login/LoginReducer";
import { defaultState as goalTimelineState } from "../GoalTimeline/DefaultState";
import { defaultState as goalSelectorState } from "../GoalTimeline/GoalSwitcher/GoalSelectorScroll/GoalSelectorReducer";
import { defaultState as goalSelectorState } from "../GoalTimeline/GoalSelectorScroll/GoalSelectorReducer";
import { defaultState as passwordResetState } from "../PasswordReset/reducer";
import { defaultState as exportProjectState } from "../ProjectExport/ExportProjectReducer";
import { defaultState as createProjectState } from "../ProjectScreen/CreateProject/CreateProjectReducer";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { StoreAction, StoreActions } from "../../../rootActions";
import { GoalSelectorState } from "../../../types/goals";
import {
GoalScrollAction,
SELECT_ACTION,
MOUSE_ACTION,
SELECT_ACTION,
} from "./GoalSelectorAction";
import { GoalSelectorState } from "../../../../types/goals";
import { StoreAction, StoreActions } from "../../../../rootActions";

export const defaultState: GoalSelectorState = {
selectedIndex: 0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import React, { ReactElement } from "react";

import Card from "@material-ui/core/Card";
import { Button, CardContent, Typography } from "@material-ui/core";
import { Goal, GoalName } from "../../../../types/goals";
import React, { ReactElement } from "react";
import {
LocalizeContextProps,
withLocalize,
Translate,
withLocalize,
} from "react-localize-redux";
import ContextMenu from "../../../ContextMenu/ContextMenu";
import { styleAddendum } from "../../../../types/theme";

import { Goal, GoalName } from "../../../types/goals";
import { styleAddendum } from "../../../types/theme";
import ContextMenu from "../../ContextMenu/ContextMenu";

const CLICK_SENSITIVITY: number = 10;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import GoalSelectorScroll from "./GoalSelectorScroll";
import { connect } from "react-redux";
import { Dispatch } from "redux";

import { StoreState } from "../../../types";
import { GoalSelectorState } from "../../../types/goals";
import {
GoalScrollAction,
scrollSelectorIndexAction,
scrollSelectorMouseAction,
} from "./GoalSelectorAction";

import { connect } from "react-redux";
import { StoreState } from "../../../../types";
import { GoalSelectorState } from "../../../../types/goals";
import { Dispatch } from "redux";
import GoalSelectorScroll from "./GoalSelectorScroll";

export function mapStateToProps(state: StoreState): GoalSelectorState {
return {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
SELECT_ACTION,
GoalScrollAction,
MOUSE_ACTION,
SELECT_ACTION,
scrollSelectorIndexAction,
scrollSelectorMouseAction,
MOUSE_ACTION,
} from "../GoalSelectorAction";

const VAL = 5;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { goalSelectReducer, defaultState } from "../GoalSelectorReducer";
import { StoreActions, StoreAction } from "../../../../rootActions";
import { GoalSelectorState } from "../../../../types/goals";
import {
SELECT_ACTION,
GoalScrollAction,
MOUSE_ACTION,
SELECT_ACTION,
} from "../GoalSelectorAction";
import { GoalSelectorState } from "../../../../../types/goals";
import { StoreActions, StoreAction } from "../../../../../rootActions";
import { defaultState, goalSelectReducer } from "../GoalSelectorReducer";

const VAL = 5;
const scrollAct: GoalScrollAction = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import renderer, {
import configureMockStore from "redux-mock-store";
import thunk from "redux-thunk";

import { Goal, GoalName, GoalSelectorState } from "../../../../../types/goals";
import { User } from "../../../../../types/user";
import { Goal, GoalName, GoalSelectorState } from "../../../../types/goals";
import { User } from "../../../../types/user";
import GoalSelectorScroll from "../";
import {
GoalScrollAction,
Expand Down
38 changes: 0 additions & 38 deletions src/components/GoalTimeline/GoalSwitcher/GoalSwitcherComponent.tsx

This file was deleted.

25 changes: 0 additions & 25 deletions src/components/GoalTimeline/GoalSwitcher/index.tsx

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion src/rootReducer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { localizeReducer } from "react-localize-redux";
import { combineReducers, Reducer } from "redux";

import { goalsReducer } from "./components/GoalTimeline/GoalsReducer";
import { goalSelectReducer } from "./components/GoalTimeline/GoalSwitcher/GoalSelectorScroll/GoalSelectorReducer";
import { goalSelectReducer } from "./components/GoalTimeline/GoalSelectorScroll/GoalSelectorReducer";
import { loginReducer } from "./components/Login/LoginReducer";
import { passwordResetReducer } from "./components/PasswordReset/reducer";
import { projectReducer } from "./components/Project/ProjectReducer";
Expand Down

0 comments on commit 9818926

Please sign in to comment.