diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-04-17 19:11:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-17 11:11:46 -0500 |
commit | 719d7b7a57c96663292d886adb6f19e283e309e0 (patch) | |
tree | 5fe3ddb22ae7ac7ff7f962c7269a59eaf08dc172 /src/state/modals | |
parent | 4f316538fb16cd86252569f5ededb34e759a4659 (diff) | |
download | voidsky-719d7b7a57c96663292d886adb6f19e283e309e0.tar.zst |
Use `SearchablePeopleList` for add user to list dialog, replace old modal (#8212)
* move to dialogs dir * make searchable people list more generic * new list-add-remove-users dialog * update header text * fix header on android * delete old modal * reduce spacing on items
Diffstat (limited to 'src/state/modals')
-rw-r--r-- | src/state/modals/index.tsx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/state/modals/index.tsx b/src/state/modals/index.tsx index 483de99e4..1709f0288 100644 --- a/src/state/modals/index.tsx +++ b/src/state/modals/index.tsx @@ -1,6 +1,6 @@ import React from 'react' -import {Image as RNImage} from 'react-native-image-crop-picker' -import {AppBskyActorDefs, AppBskyGraphDefs} from '@atproto/api' +import {type Image as RNImage} from 'react-native-image-crop-picker' +import {type AppBskyActorDefs, type AppBskyGraphDefs} from '@atproto/api' import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback' @@ -26,15 +26,6 @@ export interface UserAddRemoveListsModal { onRemove?: (listUri: string) => void } -export interface ListAddRemoveUsersModal { - name: 'list-add-remove-users' - list: AppBskyGraphDefs.ListView - onChange?: ( - type: 'add' | 'remove', - profile: AppBskyActorDefs.ProfileViewBasic, - ) => void -} - export interface CropImageModal { name: 'crop-image' uri: string @@ -107,7 +98,6 @@ export type Modal = // Lists | CreateOrEditListModal | UserAddRemoveListsModal - | ListAddRemoveUsersModal // Posts | CropImageModal |