Merge pull request #301 from getmaxun/email-ui

feat: `add language` option
This commit is contained in:
Karishma Shukla
2025-01-09 21:49:51 +05:30
committed by GitHub

View File

@@ -402,6 +402,14 @@ export const NavBar: React.FC<NavBarProps> = ({
> >
Deutsch Deutsch
</MenuItem> </MenuItem>
<MenuItem
onClick={() => {
window.open('https://docs.maxun.dev/development/i18n', '_blank');
handleMenuClose();
}}
>
Add Language
</MenuItem>
</Menu> </Menu>
</Menu> </Menu>
{renderThemeToggle()} {renderThemeToggle()}
@@ -490,6 +498,14 @@ export const NavBar: React.FC<NavBarProps> = ({
> >
Deutsch Deutsch
</MenuItem> </MenuItem>
<MenuItem
onClick={() => {
window.open('https://docs.maxun.dev/development/i18n', '_blank');
handleMenuClose();
}}
>
Add Language
</MenuItem>
</Menu> </Menu>
{renderThemeToggle()} {renderThemeToggle()}
</NavBarRight> </NavBarRight>
@@ -499,7 +515,6 @@ export const NavBar: React.FC<NavBarProps> = ({
); );
}; };
// Styled Components
const NavBarWrapper = styled.div<{ mode: 'light' | 'dark' }>` const NavBarWrapper = styled.div<{ mode: 'light' | 'dark' }>`
grid-area: navbar; grid-area: navbar;
background-color: ${({ mode }) => (mode === 'dark' ? '#1e2124' : '#ffffff')}; background-color: ${({ mode }) => (mode === 'dark' ? '#1e2124' : '#ffffff')};
@@ -520,4 +535,3 @@ const NavBarRight = styled.div`
justify-content: flex-end; justify-content: flex-end;
margin-left: auto; margin-left: auto;
`; `;