This commit is contained in:
Hailey
2024-06-07 12:47:27 -07:00
parent e98317d857
commit 0f95964646
5 changed files with 12 additions and 4 deletions
@@ -1,5 +1,5 @@
import React from 'react'
import {View} from 'react-native'
import {Keyboard, View} from 'react-native'
import {GeneratorView} from '@atproto/api/dist/client/types/app/bsky/feed/defs'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
@@ -24,6 +24,7 @@ export function WizardFeedCard({
const includesFeed = state.feeds.some(f => f.uri === generator.uri)
const onAdd = () => {
Keyboard.dismiss()
if (includesFeed) {
dispatch({type: 'RemoveFeed', feedUri: generator.uri})
} else {
@@ -1,5 +1,5 @@
import React from 'react'
import {View} from 'react-native'
import {Keyboard, View} from 'react-native'
import {AppBskyActorDefs} from '@atproto/api'
import {msg, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
@@ -25,8 +25,9 @@ export function WizardProfileCard({
const includesProfile = state.profiles.some(p => p.did === profile.did)
const onPressAddRemove = () => {
if (!profile?.did) return
Keyboard.dismiss()
if (!profile?.did) return
if (!includesProfile) {
dispatch({type: 'AddProfile', profile})
} else {