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",
|
"title": "Settings",
|
||||||
"actions": {
|
"actions": {
|
||||||
"enable2fa": "Two-Factor-Authentication",
|
"enable2fa": "Two-Factor-Authentication",
|
||||||
"aliasPreferences": "Alias Preferences"
|
"aliasPreferences": "Alias Preferences",
|
||||||
|
"apiKeys": "Edit API Keys"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import {useTranslation} from "react-i18next"
|
import {useTranslation} from "react-i18next"
|
||||||
import {GoSettings} from "react-icons/go"
|
import {GoSettings} from "react-icons/go"
|
||||||
import {BsShieldLockFill} from "react-icons/bs"
|
import {BsShieldLockFill} from "react-icons/bs"
|
||||||
|
import {MdVpnKey} from "react-icons/md"
|
||||||
import {Link} from "react-router-dom"
|
import {Link} from "react-router-dom"
|
||||||
import React, {ReactElement} from "react"
|
import React, {ReactElement} from "react"
|
||||||
|
|
||||||
@ -26,6 +27,12 @@ export default function SettingsRoute(): ReactElement {
|
|||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
<ListItemText primary={t("actions.enable2fa")} />
|
<ListItemText primary={t("actions.enable2fa")} />
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
|
<ListItemButton component={Link} to="/settings/api-keys">
|
||||||
|
<ListItemIcon>
|
||||||
|
<MdVpnKey />
|
||||||
|
</ListItemIcon>
|
||||||
|
<ListItemText primary={t("actions.apiKeys")} />
|
||||||
|
</ListItemButton>
|
||||||
</List>
|
</List>
|
||||||
</SimplePageBuilder.Page>
|
</SimplePageBuilder.Page>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user