Skip to content

Commit

Permalink
fix: remove agenda from mode-types
Browse files Browse the repository at this point in the history
  • Loading branch information
tomosterlund committed Dec 11, 2023
1 parent a0d8194 commit 52d8074
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/header/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import { type configInterface } from '../../typings/config.interface';
import Time from '../../helpers/Time';
import { type periodInterface } from '../../typings/interfaces/period.interface';
import getLanguage from '../../language';
import {ModeTranslationMapping, type modeType} from '../../typings/types';
import {type modeType} from '../../typings/types';
export default defineComponent({
name: 'AppHeader',
Expand Down Expand Up @@ -118,7 +118,7 @@ export default defineComponent({
data() {
return {
modeOptions: ['month', 'week', 'day', 'agenda'] as modeType[],
modeOptions: ['month', 'week', 'day'] as modeType[],
icons: {
chevronLeft: faChevronLeft,
chevronRight: faChevronRight,
Expand Down Expand Up @@ -190,9 +190,7 @@ export default defineComponent({
},
getTranslationForMode(mode: modeType) {
const modeTranslationKey = ModeTranslationMapping[mode as keyof typeof ModeTranslationMapping]
return this.getLanguage(this.languageKeys[modeTranslationKey], this.time?.CALENDAR_LOCALE)
return this.getLanguage(this.languageKeys[mode], this.time?.CALENDAR_LOCALE)

Check failure on line 193 in src/components/header/Header.vue

View workflow job for this annotation

GitHub Actions / Build

Element implicitly has an 'any' type because expression of type 'modeType' can't be used to index type '{ week: { "it-IT": string; "en-US": string; "de-DE": string; "sv-SE": string; "zh-CN": string; "pt-BR": string; "fr-FR": string; "th-TH": string; "nl-NL": string; "ru-RU": string; "ar-YE": string; "es-ES": string; "ja-JP": string; }; month: { ...; }; day: { ...; }; moreEvents: { ...; }; noEvent: { ...; }; }'.

Check failure on line 193 in src/components/header/Header.vue

View workflow job for this annotation

GitHub Actions / Upload to Coveralls

Element implicitly has an 'any' type because expression of type 'modeType' can't be used to index type '{ week: { "it-IT": string; "en-US": string; "de-DE": string; "sv-SE": string; "zh-CN": string; "pt-BR": string; "fr-FR": string; "th-TH": string; "nl-NL": string; "ru-RU": string; "ar-YE": string; "es-ES": string; "ja-JP": string; }; month: { ...; }; day: { ...; }; moreEvents: { ...; }; noEvent: { ...; }; }'.

Check failure on line 193 in src/components/header/Header.vue

View workflow job for this annotation

GitHub Actions / Test London

Element implicitly has an 'any' type because expression of type 'modeType' can't be used to index type '{ week: { "it-IT": string; "en-US": string; "de-DE": string; "sv-SE": string; "zh-CN": string; "pt-BR": string; "fr-FR": string; "th-TH": string; "nl-NL": string; "ru-RU": string; "ar-YE": string; "es-ES": string; "ja-JP": string; }; month: { ...; }; day: { ...; }; moreEvents: { ...; }; noEvent: { ...; }; }'.

Check failure on line 193 in src/components/header/Header.vue

View workflow job for this annotation

GitHub Actions / Test Tokyo

Element implicitly has an 'any' type because expression of type 'modeType' can't be used to index type '{ week: { "it-IT": string; "en-US": string; "de-DE": string; "sv-SE": string; "zh-CN": string; "pt-BR": string; "fr-FR": string; "th-TH": string; "nl-NL": string; "ru-RU": string; "ar-YE": string; "es-ES": string; "ja-JP": string; }; month: { ...; }; day: { ...; }; moreEvents: { ...; }; noEvent: { ...; }; }'.

Check failure on line 193 in src/components/header/Header.vue

View workflow job for this annotation

GitHub Actions / Test Mountain View

Element implicitly has an 'any' type because expression of type 'modeType' can't be used to index type '{ week: { "it-IT": string; "en-US": string; "de-DE": string; "sv-SE": string; "zh-CN": string; "pt-BR": string; "fr-FR": string; "th-TH": string; "nl-NL": string; "ru-RU": string; "ar-YE": string; "es-ES": string; "ja-JP": string; }; month: { ...; }; day: { ...; }; moreEvents: { ...; }; noEvent: { ...; }; }'.
}
}
});
Expand Down

0 comments on commit 52d8074

Please sign in to comment.