nicolium: types

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-01 13:22:18 +01:00
parent a284bfdfe1
commit 5cd3eff98e
3 changed files with 6 additions and 4 deletions

View File

@ -72,8 +72,9 @@ interface IAntennaAccountsForm {
const AntennaAccountsForm: React.FC<IAntennaAccountsForm> = ({ antennaId, excluded = false }) => {
const [searchValue, setSearchValue] = useState('');
const { data: accountIds = [], isFetching: isFetchingAccounts } = useAntennaAccounts(antennaId);
const { data: excludedAccountIds = [], isFetching: isFetchingExcludedAccounts } =
const { data: accountIds = [] as Array<string>, isFetching: isFetchingAccounts } =
useAntennaAccounts(antennaId);
const { data: excludedAccountIds = [] as Array<string>, isFetching: isFetchingExcludedAccounts } =
useAntennaExcludedAccounts(antennaId);
const { data: searchAccountIds = [] } = useAccountSearch(searchValue, {
following: true,

View File

@ -45,7 +45,8 @@ const CircleEditorModal: React.FC<BaseModalProps & CircleEditorModalProps> = ({
const { data: circle } = useCircle(circleId);
const { mutate: updateCircle, isPending: disabled } = useUpdateCircle(circleId);
const { data: accountIds = [], isFetching: isFetchingAccounts } = useCircleAccounts(circleId);
const { data: accountIds = [] as Array<string>, isFetching: isFetchingAccounts } =
useCircleAccounts(circleId);
const { data: searchAccountIds = [] } = useAccountSearch(searchValue, {
following: true,
limit: 5,

View File

@ -22,7 +22,7 @@ interface IListMembersForm {
const ListMembersForm: React.FC<IListMembersForm> = ({ listId }) => {
const [searchValue, setSearchValue] = useState('');
const { data: accountIds = [], isFetching } = useListAccounts(listId);
const { data: accountIds = [] as Array<string>, isFetching } = useListAccounts(listId);
const { data: searchAccountIds = [] } = useAccountSearch(searchValue, {
following: true,
limit: 5,