chore: modal animations

This commit is contained in:
Aman Harwara
2023-08-11 17:09:01 +05:30
parent d1142976a5
commit 7fb960470a
19 changed files with 267 additions and 206 deletions

View File

@@ -60,10 +60,7 @@ const PreferencesView: FunctionComponent<PreferencesProps> = ({ application, clo
<Modal
close={closePreferences}
title="Preferences"
className={{
content: 'md:h-full md:!max-h-full md:!w-full',
description: 'flex flex-col',
}}
className="flex flex-col"
customHeader={
<div
className={classNames(

View File

@@ -47,8 +47,10 @@ const PreferencesViewWrapper: FunctionComponent<PreferencesViewWrapperProps> = (
<ModalOverlay
isOpen={application.preferencesController.isOpen}
ref={setElement}
animate="mobile"
animationVariant="horizontal"
close={application.preferencesController.closePreferences}
className="md:h-full md:!max-h-full md:!w-full"
>
<PreferencesView
closePreferences={application.preferencesController.closePreferences}