Skip to content

Commit

Permalink
minor correction
Browse files Browse the repository at this point in the history
  • Loading branch information
meetulr committed Mar 18, 2024
1 parent 85f2fce commit b46b7f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 9 additions & 1 deletion src/utils/recurrenceUtils/recurrenceConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
Recurrence constants
*/

import { RecurrenceEndOption, WeekDays } from './recurrenceTypes';
import { Frequency, RecurrenceEndOption, WeekDays } from './recurrenceTypes';

// recurrence frequency mapping
export const frequencies = {
[Frequency.DAILY]: 'Day',
[Frequency.WEEKLY]: 'Week',
[Frequency.MONTHLY]: 'Month',
[Frequency.YEARLY]: 'Year',
};

// recurrence days options to select from in the UI
export const daysOptions = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
Expand Down
8 changes: 0 additions & 8 deletions src/utils/recurrenceUtils/recurrenceTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ export enum Frequency {
YEARLY = 'YEARLY',
}

// recurrence frequency mapping
export const frequencies = {
[Frequency.DAILY]: 'Day',
[Frequency.WEEKLY]: 'Week',
[Frequency.MONTHLY]: 'Month',
[Frequency.YEARLY]: 'Year',
};

// recurrence week days
export enum WeekDays {
SU = 'SU',
Expand Down

0 comments on commit b46b7f3

Please sign in to comment.