From ae91373ca047742dd4d70fe3045ab8dd7545e976 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Sun, 6 Oct 2024 07:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Refactor:=20Rename=20to=20`Modal?= =?UTF-8?q?SheetBottomAttachedContentOverlay`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/examples/ModalSheetViewTest04.tsx | 6 +++--- .../ModalSheetBottomAttachedContentOverlay.tsx | 6 +++--- .../ModalSheetBottomAttachedContentOverlayTypes.ts | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/example/src/examples/ModalSheetViewTest04.tsx b/example/src/examples/ModalSheetViewTest04.tsx index fd8734a..2d2b3d9 100644 --- a/example/src/examples/ModalSheetViewTest04.tsx +++ b/example/src/examples/ModalSheetViewTest04.tsx @@ -3,7 +3,7 @@ import * as React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { ExampleItemCard, CardButton, Colors } from 'react-native-ios-utilities'; -import { ModalSheetView, ModalSheetViewContext, ModalSheetMainContent, type ModalSheetViewRef, ModalSheetViewBottomAttachedContentOverlay } from 'react-native-ios-modal'; +import { ModalSheetView, ModalSheetViewContext, ModalSheetMainContent, type ModalSheetViewRef, ModalSheetBottomAttachedContentOverlay } from 'react-native-ios-modal'; import type { ExampleItemProps } from './SharedExampleTypes'; @@ -41,7 +41,7 @@ export function ModalSheetViewTest04(props: ExampleItemProps) { - @@ -49,7 +49,7 @@ export function ModalSheetViewTest04(props: ExampleItemProps) { {'Bottom Content'} - + ); diff --git a/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlay.tsx b/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlay.tsx index 1cc2995..714685d 100644 --- a/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlay.tsx +++ b/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlay.tsx @@ -3,11 +3,11 @@ import * as React from 'react'; import { ModalSheetContent } from './ModalSheetContent'; import { ModalSheetViewNativeIDKeys } from '../ModalSheetView/ModalSheetViewNativeIDKeys'; -import type { ModalSheetViewBottomAttachedContentOverlayProps } from './ModalSheetBottomAttachedContentOverlayTypes'; +import type { ModalSheetBottomAttachedContentOverlayProps } from './ModalSheetBottomAttachedContentOverlayTypes'; -export function ModalSheetViewBottomAttachedContentOverlay( - props: React.PropsWithChildren +export function ModalSheetBottomAttachedContentOverlay( + props: React.PropsWithChildren ) { const { children, ...otherProps } = props; return ( diff --git a/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlayTypes.ts b/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlayTypes.ts index 251189b..e48980e 100644 --- a/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlayTypes.ts +++ b/src/components/ModalSheetContent/ModalSheetBottomAttachedContentOverlayTypes.ts @@ -1,13 +1,13 @@ import type { ModalSheetContentProps } from './ModalSheetContentTypes'; -export type ModalSheetViewBottomAttachedContentOverlayInheritedProps = Pick; -export type ModalSheetViewBottomAttachedContentOverlayBaseProps = { +export type ModalSheetBottomAttachedContentOverlayBaseProps = { }; -export type ModalSheetViewBottomAttachedContentOverlayProps = - & ModalSheetViewBottomAttachedContentOverlayInheritedProps - & ModalSheetViewBottomAttachedContentOverlayBaseProps; \ No newline at end of file +export type ModalSheetBottomAttachedContentOverlayProps = + & ModalSheetBottomAttachedContentOverlayInheritedProps + & ModalSheetBottomAttachedContentOverlayBaseProps; \ No newline at end of file