diff options
author | Hailey <me@haileyok.com> | 2024-08-21 19:35:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 19:35:34 -0700 |
commit | 61f0be705d614a31331945e1c4b9361d71b81403 (patch) | |
tree | 093eae09977443d66ad917f45c6c5e1362559001 /src/components/StarterPack/Wizard/WizardListCard.tsx | |
parent | 6616a6467ec53aa71e5f823c2d8c46dc01442703 (diff) | |
download | voidsky-61f0be705d614a31331945e1c4b9361d71b81403.tar.zst |
Change size (#4957)
Diffstat (limited to 'src/components/StarterPack/Wizard/WizardListCard.tsx')
-rw-r--r-- | src/components/StarterPack/Wizard/WizardListCard.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/StarterPack/Wizard/WizardListCard.tsx b/src/components/StarterPack/Wizard/WizardListCard.tsx index 55cf0f02b..bd308fc73 100644 --- a/src/components/StarterPack/Wizard/WizardListCard.tsx +++ b/src/components/StarterPack/Wizard/WizardListCard.tsx @@ -12,7 +12,7 @@ import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {DISCOVER_FEED_URI} from 'lib/constants' +import {DISCOVER_FEED_URI, STARTER_PACK_MAX_SIZE} from 'lib/constants' import {sanitizeDisplayName} from 'lib/strings/display-names' import {sanitizeHandle} from 'lib/strings/handles' import {useSession} from 'state/session' @@ -130,7 +130,8 @@ export function WizardProfileCard({ const isMe = profile.did === currentAccount?.did const included = isMe || state.profiles.some(p => p.did === profile.did) - const disabled = isMe || (!included && state.profiles.length >= 49) + const disabled = + isMe || (!included && state.profiles.length >= STARTER_PACK_MAX_SIZE - 1) const moderationUi = moderateProfile(profile, moderationOpts).ui('avatar') const displayName = profile.displayName ? sanitizeDisplayName(profile.displayName) |