mirror of
https://github.com/Myzel394/kleckrelay-website.git
synced 2025-06-18 23:45:26 +02:00
feat(api-keys): Add to settings
This commit is contained in:
parent
157e075885
commit
bc5063b44c
@ -2,6 +2,7 @@
|
||||
"title": "Settings",
|
||||
"actions": {
|
||||
"enable2fa": "Two-Factor-Authentication",
|
||||
"aliasPreferences": "Alias Preferences"
|
||||
"aliasPreferences": "Alias Preferences",
|
||||
"apiKeys": "Edit API Keys"
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user