From db2bef5a3ca39bf4477c7be4b87ffc1979461407 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Wed, 10 Sep 2025 13:01:13 +0200 Subject: [PATCH] add reducer --- sae-csc/src/app/pages/main/main.html | 1 + sae-csc/src/app/redux/reducers/index.ts | 8 ++++---- sae-csc/src/public/privacy_shield_csc.svg | 3 +++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 sae-csc/src/public/privacy_shield_csc.svg diff --git a/sae-csc/src/app/pages/main/main.html b/sae-csc/src/app/pages/main/main.html index 423fabd..b9348fe 100644 --- a/sae-csc/src/app/pages/main/main.html +++ b/sae-csc/src/app/pages/main/main.html @@ -1,6 +1,7 @@
+

CSC Solution Matcher helps match client questions with similar previous cases using diff --git a/sae-csc/src/app/redux/reducers/index.ts b/sae-csc/src/app/redux/reducers/index.ts index 3250ef2..d1c57ee 100644 --- a/sae-csc/src/app/redux/reducers/index.ts +++ b/sae-csc/src/app/redux/reducers/index.ts @@ -165,9 +165,9 @@ function currentThemeReducer(state = initialState.currentTheme, action: AppActio case ActionTypes.SWITCH_TO_NEXT_THEME: // Get the themesList from the store const themesList = initialState.themesList; - // Find the index of the current theme + // Find the main-button of the current theme const currentThemeIndex = themesList.indexOf(state); - // Calculate the index of the next theme (or go back to the first theme if at the end) + // Calculate the main-button of the next theme (or go back to the first theme if at the end) const nextThemeIndex = (currentThemeIndex + 1) % themesList.length; // Get the next theme return themesList[nextThemeIndex]; @@ -188,9 +188,9 @@ function currentLangReducer(state = initialState.currentLang, action: AppActions case ActionTypes.SWITCH_TO_NEXT_LANGUAGE: // Get the langsList from the store const langsList = initialState.langsList; - // Find the index of the current language + // Find the main-button of the current language const currentLangIndex = langsList.indexOf(state); - // Calculate the index of the next language (or go back to the first language if at the end) + // Calculate the main-button of the next language (or go back to the first language if at the end) const nextLangIndex = (currentLangIndex + 1) % langsList.length; // Get the next language return langsList[nextLangIndex]; diff --git a/sae-csc/src/public/privacy_shield_csc.svg b/sae-csc/src/public/privacy_shield_csc.svg new file mode 100644 index 0000000..90c7e52 --- /dev/null +++ b/sae-csc/src/public/privacy_shield_csc.svg @@ -0,0 +1,3 @@ + + +