Skip to content

Commit

Permalink
chore(app): removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Mar 20, 2023
1 parent 6950011 commit 100e376
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/src/stores/app/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@ import {
mutation,
} from './store';

import type {
ClockType,
Theme,
} from './types';

export const setTheme = mutation(MUTATIONS.setTheme, (state, theme: Theme) => state.theme = theme);
export const updateTime = mutation(MUTATIONS.updateTime, state => state.time = new Date());
export const setClockType = mutation(MUTATIONS.setClockType, (state, type: ClockType) => state.clockType = type);
export const addClocks = mutation(MUTATIONS.addClocks, (state, timezones: string | string[]) => state.clocks = state.clocks.concat(timezones));
export const removeClock = mutation(MUTATIONS.removeClock, (state, timezone: string) => state.clocks = state.clocks.filter(tz => tz !== timezone));

0 comments on commit 100e376

Please sign in to comment.