Store user selected language in session storage.

This commit is contained in:
fufu-girl-meow 2025-06-24 00:56:56 +07:00
parent 77effde428
commit c105f98d46

View file

@ -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>
);