update lang switch

This commit is contained in:
nikk gitanes
2021-06-17 14:41:45 +03:00
parent 02befbd1b2
commit 22d1f733f8
2 changed files with 2 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ export default function App() {
<div style={{ justifySelf: 'end' }}> <div style={{ justifySelf: 'end' }}>
<LanguageSwitch onClick={() => (currentLang === 'en' ? changeLang('ru') : changeLang('en'))}> <LanguageSwitch onClick={() => (currentLang === 'en' ? changeLang('ru') : changeLang('en'))}>
{currentLang === 'en' ? 'RU' : 'EN'} {currentLang === 'en' ? 'ru' : 'en'}
</LanguageSwitch> </LanguageSwitch>
</div> </div>
</AppHeader> </AppHeader>

View File

@@ -76,7 +76,7 @@ export const LanguageSwitch = styled.div`
font-weight: 500; font-weight: 500;
display: grid; display: grid;
place-items: center; place-items: center;
color: #44795e; color: #eee;
:hover { :hover {
background: #7ec9a3; background: #7ec9a3;
@@ -85,6 +85,5 @@ export const LanguageSwitch = styled.div`
@media (max-width: 700px) { @media (max-width: 700px) {
height: 28px; height: 28px;
width: 28px; width: 28px;
font-size: 12px;
} }
` `