add reducer
This commit is contained in:
parent
72e35b5582
commit
db2bef5a3c
3 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
<div id="main_page">
|
<div id="main_page">
|
||||||
<main>
|
<main>
|
||||||
|
|
||||||
|
<sae-feedback-button></sae-feedback-button>
|
||||||
<h2 class="title">
|
<h2 class="title">
|
||||||
CSC Solution Matcher helps match client questions with similar previous cases using
|
CSC Solution Matcher helps match client questions with similar previous cases using
|
||||||
<span class="magic-text">
|
<span class="magic-text">
|
||||||
|
|
|
@ -165,9 +165,9 @@ function currentThemeReducer(state = initialState.currentTheme, action: AppActio
|
||||||
case ActionTypes.SWITCH_TO_NEXT_THEME:
|
case ActionTypes.SWITCH_TO_NEXT_THEME:
|
||||||
// Get the themesList from the store
|
// Get the themesList from the store
|
||||||
const themesList = initialState.themesList;
|
const themesList = initialState.themesList;
|
||||||
// Find the index of the current theme
|
// Find the main-button of the current theme
|
||||||
const currentThemeIndex = themesList.indexOf(state);
|
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;
|
const nextThemeIndex = (currentThemeIndex + 1) % themesList.length;
|
||||||
// Get the next theme
|
// Get the next theme
|
||||||
return themesList[nextThemeIndex];
|
return themesList[nextThemeIndex];
|
||||||
|
@ -188,9 +188,9 @@ function currentLangReducer(state = initialState.currentLang, action: AppActions
|
||||||
case ActionTypes.SWITCH_TO_NEXT_LANGUAGE:
|
case ActionTypes.SWITCH_TO_NEXT_LANGUAGE:
|
||||||
// Get the langsList from the store
|
// Get the langsList from the store
|
||||||
const langsList = initialState.langsList;
|
const langsList = initialState.langsList;
|
||||||
// Find the index of the current language
|
// Find the main-button of the current language
|
||||||
const currentLangIndex = langsList.indexOf(state);
|
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;
|
const nextLangIndex = (currentLangIndex + 1) % langsList.length;
|
||||||
// Get the next language
|
// Get the next language
|
||||||
return langsList[nextLangIndex];
|
return langsList[nextLangIndex];
|
||||||
|
|
3
sae-csc/src/public/privacy_shield_csc.svg
Normal file
3
sae-csc/src/public/privacy_shield_csc.svg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<path d="M3.15256 2.3549L10 0.833252L16.8474 2.3549C17.2287 2.43964 17.5 2.77781 17.5 3.16839V11.4907C17.5 13.1624 16.6645 14.7236 15.2735 15.6509L10 19.1666L4.7265 15.6509C3.33551 14.7236 2.5 13.1624 2.5 11.4907V3.16839C2.5 2.77781 2.77128 2.43964 3.15256 2.3549ZM4.16667 3.83687V11.4907C4.16667 12.6052 4.72367 13.6459 5.651 14.2642L10 17.1635L14.349 14.2642C15.2763 13.6459 15.8333 12.6052 15.8333 11.4907V3.83687L10 2.54058L4.16667 3.83687ZM10 9.16659C8.84942 9.16659 7.91667 8.23384 7.91667 7.08325C7.91667 5.93266 8.84942 4.99992 10 4.99992C11.1506 4.99992 12.0833 5.93266 12.0833 7.08325C12.0833 8.23384 11.1506 9.16659 10 9.16659ZM6.27288 13.3333C6.48016 11.4583 8.06977 9.99992 10 9.99992C11.9303 9.99992 13.5198 11.4583 13.7271 13.3333H6.27288Z" fill="black"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 874 B |
Loading…
Add table
Add a link
Reference in a new issue