chore: prepare account management buttons

This commit is contained in:
Paul Makles 2022-06-09 14:47:53 +01:00
parent 040c4367f7
commit 7544c78360

View file

@ -176,13 +176,9 @@ export const Account = observer(() => {
</h3> </h3>
<h5> <h5>
{/*<Text id="app.settings.pages.account.2fa.description" />*/} {/*<Text id="app.settings.pages.account.2fa.description" />*/}
Two-factor authentication is currently work-in-progress, see{" "} Two-factor authentication is currently in-development, see{" "}
{` `} <a href="https://github.com/revoltchat/revite/issues/675">
<a tracking issue here
href="https://github.com/insertish/rauth/milestone/1"
target="_blank"
rel="noreferrer">
v1 milestone here
</a> </a>
. .
</h5> </h5>
@ -210,23 +206,26 @@ export const Account = observer(() => {
<CategoryButton <CategoryButton
icon={<Block size={24} color="var(--error)" />} icon={<Block size={24} color="var(--error)" />}
description={ description={
"Disable your account. You won't be able to access it unless you log back in." "Disable your account. You won't be able to access it unless you contact support."
} }
disabled action="chevron"
action={<Text id="general.unavailable" />}> onClick={() => {
//
}}>
<Text id="app.settings.pages.account.manage.disable" /> <Text id="app.settings.pages.account.manage.disable" />
</CategoryButton> </CategoryButton>
<a href="mailto:contact@revolt.chat?subject=Delete%20my%20account">
<CategoryButton <CategoryButton
icon={<Trash size={24} color="var(--error)" />} icon={<Trash size={24} color="var(--error)" />}
description={ description={
"Delete your account, including all of your data. (sends an email to contact@revolt.chat)" "Your account will be queued for deletion, a confirmation email will be sent."
} }
hover hover
action="external"> action="chevron"
onClick={() => {
//
}}>
<Text id="app.settings.pages.account.manage.delete" /> <Text id="app.settings.pages.account.manage.delete" />
</CategoryButton> </CategoryButton>
</a>
<Tip> <Tip>
<span> <span>
<Text id="app.settings.tips.account.a" /> <Text id="app.settings.tips.account.a" />