diff --git a/src/components/dialogs/StarterPackDialog.tsx b/src/components/dialogs/StarterPackDialog.tsx
index 871b34da57..ac3861e2b6 100644
--- a/src/components/dialogs/StarterPackDialog.tsx
+++ b/src/components/dialogs/StarterPackDialog.tsx
@@ -19,8 +19,7 @@ import {
useListMembershipAddMutation,
useListMembershipRemoveMutation,
} from '#/state/queries/list-memberships'
-import * as Toast from '#/view/com/util/Toast'
-import {atoms as a, useTheme} from '#/alf'
+import {atoms as a, native, platform, useTheme} from '#/alf'
import {AvatarStack} from '#/components/AvatarStack'
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
import * as Dialog from '#/components/Dialog'
@@ -29,6 +28,7 @@ import {PlusLarge_Stroke2_Corner0_Rounded as PlusIcon} from '#/components/icons/
import {StarterPack} from '#/components/icons/StarterPack'
import {TimesLarge_Stroke2_Corner0_Rounded as XIcon} from '#/components/icons/Times'
import {Loader} from '#/components/Loader'
+import * as Toast from '#/components/Toast'
import {Text} from '#/components/Typography'
import {useAnalytics} from '#/analytics'
import {IS_WEB} from '#/env'
@@ -168,9 +168,11 @@ function StarterPackList({
<>
Add to starter packs
@@ -181,7 +183,8 @@ function StarterPackList({
variant="ghost"
color="secondary"
size="small"
- shape="round">
+ shape="round"
+ style={{margin: -8}}>
@@ -232,7 +235,10 @@ function StarterPackList({
onEndReachedThreshold={0.1}
ListHeaderComponent={listHeader}
ListEmptyComponent={}
- style={IS_WEB ? [a.px_md, {minHeight: 500}] : [a.px_2xl, a.pt_lg]}
+ style={platform({
+ web: [a.px_2xl, {minHeight: 500}],
+ native: [a.px_2xl, a.pt_lg],
+ })}
/>
)
}
@@ -293,13 +299,11 @@ function StarterPackItem({
})
const handleToggleMembership = () => {
- if (!starterPack.list?.uri || isPendingRefresh) return
+ if (!starterPack.list?.uri || isPending) return
const listUri = starterPack.list.uri
const starterPackUri = starterPack.uri
- setIsPendingRefresh(true)
-
if (!isInPack) {
addMembership({
listUri: listUri,
@@ -344,7 +348,7 @@ function StarterPackItem({
starterPack.listItemsSample.length > 0 && (
<>
p.subject)}