refactor: conferencing apps atoms web wrapper (#17732)

* conferencing apps atoms web wrapper

* Update DisconnectIntegrationModal.tsx

* formating changes

* handleBulkUpdateDefaultLocation -> bulkUpdateFunction

* fix: type error for handleRemoveApp

* fix: type error for handleRemoveApp

* refactor: removed ConferencingView component and migrated its functionality to ConferencingAppsViewWebWrapper

* refactor: moved AppList, AppListCard to packages/features

* fix: type changes

---------

Co-authored-by: Morgan <[email protected]>
This commit is contained in:
Somay ChauhanandMorgan authored and GitHub committed 2024-11-25 09:53:38 +02:00
1 parent 8b9693ea60
commit 868cf91c35
16 files changed
+354 -186

No files matched your search

@@ -10,10 +10,12 @@ export const BulkUpdateEventSchema = z.object({
eventTypeIds: z.array(z.number()),
});
export type BulkUpdatParams = { eventTypeIds: number[]; callback: () => void };
export function BulkEditDefaultForEventsModal(props: {
open: boolean;
setOpen: (open: boolean) => void;
bulkUpdateFunction: ({ eventTypeIds }: { eventTypeIds: number[] }) => void;
bulkUpdateFunction: (params: BulkUpdatParams) => void;
isPending: boolean;
description: string;
}) {
@@ -42,7 +44,10 @@ export function BulkEditDefaultForEventsModal(props: {
<Form
form={form}
handleSubmit={(values) => {
props.bulkUpdateFunction(values);
props.bulkUpdateFunction({
eventTypeIds: values.eventTypeIds,
callback: () => props.setOpen(false),
});
}}>
<div className="flex flex-col space-y-2">
{data.eventTypes.length > 0 && (