1
0
Fork 0

feat(org): More account pages

This commit is contained in:
joostdecock 2023-02-18 16:11:02 +01:00
parent 2f97d03ab1
commit c0571d54f0
26 changed files with 471 additions and 30 deletions

View file

@ -1,7 +1,13 @@
import { Spinner } from 'shared/components/spinner.mjs'
import { useTranslation } from 'next-i18next'
export const SaveSettingsButton = ({ email, app, btnProps = {}, welcome = false }) => {
export const SaveSettingsButton = ({
email,
app,
btnProps = {},
welcome = false,
label = false,
}) => {
const { t } = useTranslation(['account'])
let classes = 'btn mt-4 capitalize '
if (welcome) {
@ -22,6 +28,8 @@ export const SaveSettingsButton = ({ email, app, btnProps = {}, welcome = false
<Spinner />
<span>{t('processing')}</span>
</>
) : label ? (
<span>{label}</span>
) : (
<span>{t('save')}</span>
)}