Skip to content

Commit 0135627

Browse files
committed
change const case
1 parent df56f56 commit 0135627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/Modal/BaseModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import ReanimatedModal from './ReanimatedModal';
2929
import type ModalProps from './ReanimatedModal/types';
3030
import type BaseModalProps from './types';
3131

32-
const ReanimatedModalTypes: Array<ValueOf<typeof CONST.MODAL.MODAL_TYPE>> = [CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED, CONST.MODAL.MODAL_TYPE.FULLSCREEN];
32+
const REANIMATED_MODAL_TYPES: Array<ValueOf<typeof CONST.MODAL.MODAL_TYPE>> = [CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED, CONST.MODAL.MODAL_TYPE.FULLSCREEN];
3333

3434
type ModalComponentProps = (ReactNativeModalProps | ModalProps) & {
3535
type?: ValueOf<typeof CONST.MODAL.MODAL_TYPE>;
3636
};
3737

3838
function ModalComponent({type, ...props}: ModalComponentProps) {
39-
if (type && ReanimatedModalTypes.includes(type)) {
39+
if (type && REANIMATED_MODAL_TYPES.includes(type)) {
4040
// eslint-disable-next-line react/jsx-props-no-spreading
4141
return <ReanimatedModal {...(props as ModalProps)} />;
4242
}

0 commit comments

Comments
 (0)