Skip to content

Commit

Permalink
tweaked account modal ui #434
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Sep 1, 2024
1 parent 34df152 commit 99537ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/MyAccountModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ function MyAccountModal(props) {
<RDialog title={t("my_ruuvi_account")} isOpen={props.open} onClose={props.onClose}>
<Title>{t("signed_in_user")}</Title>
<Content>{userEmail}</Content>
<Content>
{addLink(t("my_account_change_email"), t("my_account_change_email_link_markup"), t("my_account_change_email_link"))}
</Content>
<Box minHeight="250px">
{subscriptions.length < 1 ? (
<Progress isIndeterminate />
Expand Down Expand Up @@ -159,6 +162,7 @@ function MyAccountModal(props) {
</Content>
}
<Title>{t("enter_activation_code")}</Title>
<Box mt={1} />
<PinInput variant="filled" type="alphanumeric" value={activationCode} autoFocus={false} focusBorderColor="#1f938500" onChange={code => updateValidationCode(code)}>
{Array(4).fill().map(() => {
return <PinInputField bg={ruuviTheme.colors.pinFieldBgColor} _focus={{ backgroundColor: ruuviTheme.colors.pinFieldBgHoverColor }} _hover={{ backgroundColor: ruuviTheme.colors.pinFieldBgHoverColor }} color={"black"} height={12} style={{ margin: 5, fontWeight: 800, maxWidth: "9%" }} onPaste={handleCodePaste} />
Expand All @@ -180,10 +184,6 @@ function MyAccountModal(props) {
)}
</Box>
<Box mt={16}></Box>
<Content>
{addLink(t("my_account_change_email"), t("my_account_change_email_link_markup"), t("my_account_change_email_link"))}
</Content>
<Box mt={4}></Box>
<Button variant='link' onClick={async () => {
setShowDeleteAccount(true)
}}>{t("delete_account")}</Button>
Expand Down

0 comments on commit 99537ce

Please sign in to comment.