-
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1025 from The-Commit-Company/develop
Version 1.6.10
- Loading branch information
Showing
12 changed files
with
416 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
frontend/src/components/feature/integrations/meetings/CreateMeetingDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Drawer, DrawerContent } from '@/components/layout/Drawer' | ||
import { useIsDesktop } from '@/hooks/useMediaQuery' | ||
import { ChannelListItem } from '@/utils/channel/ChannelListProvider' | ||
import { DIALOG_CONTENT_CLASS } from '@/utils/layout/dialog' | ||
import { Dialog } from '@radix-ui/themes' | ||
import CreateMeetingForm from './CreateMeetingForm' | ||
|
||
interface CreateMeetingDialogProps { | ||
isOpen: boolean, | ||
setOpen: (open: boolean) => void | ||
channelData: ChannelListItem | ||
} | ||
|
||
const CreateMeetingDialog = ({ isOpen, setOpen, channelData }: CreateMeetingDialogProps) => { | ||
|
||
|
||
const isDesktop = useIsDesktop() | ||
|
||
if (isDesktop) { | ||
return ( | ||
<Dialog.Root open={isOpen} onOpenChange={setOpen}> | ||
<Dialog.Content className={DIALOG_CONTENT_CLASS}> | ||
<CreateMeetingForm | ||
channelData={channelData} | ||
onClose={() => setOpen(false)} | ||
/> | ||
</Dialog.Content> | ||
</Dialog.Root> | ||
) | ||
} else { | ||
return <Drawer open={isOpen} onOpenChange={setOpen}> | ||
<DrawerContent> | ||
<div className='pb-16 min-h-48 px-1 overflow-auto'> | ||
<CreateMeetingForm | ||
channelData={channelData} | ||
onClose={() => setOpen(false)} | ||
/> | ||
</div> | ||
</DrawerContent> | ||
</Drawer> | ||
} | ||
} | ||
|
||
export default CreateMeetingDialog |
Oops, something went wrong.