diff --git a/packages/web/pages/settings/account.tsx b/packages/web/pages/settings/account.tsx index 0051bbbd2..d4cc1252a 100644 --- a/packages/web/pages/settings/account.tsx +++ b/packages/web/pages/settings/account.tsx @@ -8,7 +8,7 @@ import { } from '../../components/elements/LayoutPrimitives' import { StyledText } from '../../components/elements/StyledText' import { SettingsLayout } from '../../components/templates/SettingsLayout' -import { styled } from '../../components/tokens/stitches.config' +import { styled, theme } from '../../components/tokens/stitches.config' import { updateEmailMutation } from '../../lib/networking/mutations/updateEmailMutation' import { updateUserMutation } from '../../lib/networking/mutations/updateUserMutation' import { updateUserProfileMutation } from '../../lib/networking/mutations/updateUserProfileMutation' @@ -18,6 +18,9 @@ import { useValidateUsernameQuery } from '../../lib/networking/queries/useValida import { applyStoredTheme } from '../../lib/themeUpdater' import { showErrorToast, showSuccessToast } from '../../lib/toastHelpers' import { ConfirmationModal } from '../../components/patterns/ConfirmationModal' +import { ProgressBar } from '../../components/elements/ProgressBar' + +const ACCOUNT_LIMIT = 50_000 const StyledLabel = styled('label', { fontWeight: 600, @@ -371,7 +374,7 @@ export default function Account(): JSX.Element { - {/* - - {`${libraryCount} of 50K library items used.`} + + {`${libraryCount} of ${ACCOUNT_LIMIT} library items used.`} + + + NOTE: this is a soft limit, if you are approaching or have + exceeded this limit please contact support to have your limit + raised. )} - - */} + {/* */} + - Deleting your account will delete all your saved items, notes, and - highlights. This operation can not be undone. +

+ Deleting your account will delete all your saved items, notes, and + highlights. This operation can not be undone. Note that once your + account is deleted you will not be able to create a new account + with the same username/email for at least 24hrs. +

+

+ If you are deleting your account because you've imported too + many items, and want a "fresh start" you can try using + the bulk tool to clean up your + account instead. +

{viewer && router ? (