feat(api-keys): Add to settings

This commit is contained in:
Myzel394 2023-03-10 21:38:16 +01:00
parent 157e075885
commit bc5063b44c
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,7 @@
"title": "Settings",
"actions": {
"enable2fa": "Two-Factor-Authentication",
"aliasPreferences": "Alias Preferences"
"aliasPreferences": "Alias Preferences",
"apiKeys": "Edit API Keys"
}
}

View File

@ -1,6 +1,7 @@
import {useTranslation} from "react-i18next"
import {GoSettings} from "react-icons/go"
import {BsShieldLockFill} from "react-icons/bs"
import {MdVpnKey} from "react-icons/md"
import {Link} from "react-router-dom"
import React, {ReactElement} from "react"
@ -26,6 +27,12 @@ export default function SettingsRoute(): ReactElement {
</ListItemIcon>
<ListItemText primary={t("actions.enable2fa")} />
</ListItemButton>
<ListItemButton component={Link} to="/settings/api-keys">
<ListItemIcon>
<MdVpnKey />
</ListItemIcon>
<ListItemText primary={t("actions.apiKeys")} />
</ListItemButton>
</List>
</SimplePageBuilder.Page>
)