mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
feat(share): allow creating share links from media view with quick share dialog (#548)
* feat(share): allow creating share links from media view with quick share dialog * fix(share): prevent horizontal overflow in quick share dialog
This commit is contained in:
@@ -16,6 +16,7 @@ interface DateTimePickerProps {
|
||||
placeholder?: string
|
||||
disabled?: boolean
|
||||
className?: string
|
||||
modal?: boolean
|
||||
}
|
||||
|
||||
export function DateTimePicker({
|
||||
@@ -24,6 +25,7 @@ export function DateTimePicker({
|
||||
placeholder = 'Pick a date',
|
||||
disabled,
|
||||
className,
|
||||
modal = false,
|
||||
}: DateTimePickerProps) {
|
||||
const [isOpen, setIsOpen] = React.useState(false)
|
||||
const [tempValue, setTempValue] = React.useState<Date | undefined>(value)
|
||||
@@ -78,7 +80,7 @@ export function DateTimePicker({
|
||||
}
|
||||
|
||||
return (
|
||||
<Popover open={isOpen} onOpenChange={setIsOpen}>
|
||||
<Popover modal={modal} open={isOpen} onOpenChange={setIsOpen}>
|
||||
<PopoverTrigger asChild>
|
||||
<Button
|
||||
variant="outline"
|
||||
|
||||
Reference in New Issue
Block a user