Merge pull request #301 from getmaxun/email-ui
feat: `add language` option
This commit is contained in:
@@ -402,6 +402,14 @@ export const NavBar: React.FC<NavBarProps> = ({
|
||||
>
|
||||
Deutsch
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
window.open('https://docs.maxun.dev/development/i18n', '_blank');
|
||||
handleMenuClose();
|
||||
}}
|
||||
>
|
||||
Add Language
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
</Menu>
|
||||
{renderThemeToggle()}
|
||||
@@ -490,6 +498,14 @@ export const NavBar: React.FC<NavBarProps> = ({
|
||||
>
|
||||
Deutsch
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
onClick={() => {
|
||||
window.open('https://docs.maxun.dev/development/i18n', '_blank');
|
||||
handleMenuClose();
|
||||
}}
|
||||
>
|
||||
Add Language
|
||||
</MenuItem>
|
||||
</Menu>
|
||||
{renderThemeToggle()}
|
||||
</NavBarRight>
|
||||
@@ -499,7 +515,6 @@ export const NavBar: React.FC<NavBarProps> = ({
|
||||
);
|
||||
};
|
||||
|
||||
// Styled Components
|
||||
const NavBarWrapper = styled.div<{ mode: 'light' | 'dark' }>`
|
||||
grid-area: navbar;
|
||||
background-color: ${({ mode }) => (mode === 'dark' ? '#1e2124' : '#ffffff')};
|
||||
@@ -519,5 +534,4 @@ const NavBarRight = styled.div`
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-left: auto;
|
||||
`;
|
||||
|
||||
`;
|
||||
Reference in New Issue
Block a user