-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Beautify the calendar * Change text to xs on calendar
- Loading branch information
1 parent
0645211
commit f138405
Showing
8 changed files
with
101 additions
and
54 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import cx from 'classnames'; | ||
import { | ||
Modal as FlowbiteModal, | ||
ModalBody as FlowbiteModalBody, | ||
ModalHeader as FlowbiteModalHeader | ||
} from 'flowbite-react'; | ||
|
||
export function ModalHeader(props) { | ||
return ( | ||
<FlowbiteModalHeader | ||
className={cx(props.className, 'text-xs')} | ||
{...(({ children, ...o }) => o)(props)} | ||
> | ||
{props.children} | ||
</FlowbiteModalHeader> | ||
); | ||
} | ||
|
||
export function ModalBody(props) { | ||
return ( | ||
<FlowbiteModalBody | ||
className={cx(props.className, 'text-xs')} | ||
{...(({ children, ...o }) => o)(props)} | ||
> | ||
{props.children} | ||
</FlowbiteModalBody> | ||
); | ||
} | ||
|
||
export function Modal(props) { | ||
return ( | ||
<FlowbiteModal | ||
className={cx(props.className, 'text-xs')} | ||
{...(({ children, ...o }) => o)(props)} | ||
theme={{ | ||
content: { | ||
inner: 'relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-800' | ||
}, | ||
header: { | ||
base: 'flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600 text-xs dark:bg-[#09090B]' | ||
} | ||
}} | ||
> | ||
{props.children} | ||
</FlowbiteModal> | ||
); | ||
} |
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