Store user selected language in session storage.
This commit is contained in:
parent
77effde428
commit
c105f98d46
1 changed files with 6 additions and 2 deletions
|
@ -28,8 +28,12 @@ function languageSelection() {
|
|||
gap: '1rem',
|
||||
marginTop: '1rem'
|
||||
}}>
|
||||
<BlackButton text="ภาษาไทย" to='/introduction'/>
|
||||
<BlackButton text="English" to='/introduction'/>
|
||||
<BlackButton text="ภาษาไทย" to='/name' onClick={(e) => {
|
||||
setLang("Thai");
|
||||
}}/>
|
||||
<BlackButton text="English" to='/name' onClick={(e) => {
|
||||
setLang("English");
|
||||
}}/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue