diff --git a/packages/app/components/Banner/index.tsx b/packages/app/components/Banner/index.tsx index 04f0a6a..44b9965 100644 --- a/packages/app/components/Banner/index.tsx +++ b/packages/app/components/Banner/index.tsx @@ -75,101 +75,5 @@ export const FlatlistBanner = () => { // - return ( - - {isSuccess ? ( - - } - showPagination - initialNumToRender={1} - PaginationComponent={CustomPagination} - /> - {/*Floating Btn*/} - { - const curId = flatListRef.current?.getCurrentIndex(); - if (curId !== undefined && curId > 0) - flatListRef.current?.scrollToIndex({ index: curId - 1 }); - else flatListRef.current?.goToLastIndex(); - }} - > - {({ isFocused, isHovered, isPressed }) => { - return ( - - ); - }} - - - { - const curId = flatListRef.current?.getCurrentIndex(); - if (curId !== undefined && curId < NUM_ITEM - 1) - flatListRef.current?.scrollToIndex({ index: curId + 1 }); - else flatListRef.current?.goToFirstIndex(); - }} - > - {({ isFocused, isHovered, isPressed }) => { - return ( - - ); - }} - - {/* Floating Btn */} - - ) : ( - - - - )} - - ); + }; diff --git a/packages/app/components/ScaledImage.tsx b/packages/app/components/ScaledImage.tsx index c3ca856..771ddaf 100644 --- a/packages/app/components/ScaledImage.tsx +++ b/packages/app/components/ScaledImage.tsx @@ -215,48 +215,7 @@ const ScaledImagex = ({ /> ); - return ( - <> - {source.uri} - {/* */} - - ); + }; //make this component available to the app diff --git a/packages/app/screens/FindByNameResultScreen/FindByNameResultScreen.tsx b/packages/app/screens/FindByNameResultScreen/FindByNameResultScreen.tsx index 34addc0..9f20154 100644 --- a/packages/app/screens/FindByNameResultScreen/FindByNameResultScreen.tsx +++ b/packages/app/screens/FindByNameResultScreen/FindByNameResultScreen.tsx @@ -24,16 +24,5 @@ export const FindByNameResultScreen = (props: FindByNameResultScreenProps) => { ); - return ( - - {/* {name} */} - {isLoading || loading ? ( - - ) : data?.data?.length ? ( - - ) : ( - - )} - - ); + }; diff --git a/packages/app/screens/HomeScreen/HomeScreen.tsx b/packages/app/screens/HomeScreen/HomeScreen.tsx index a9503e0..10e9239 100644 --- a/packages/app/screens/HomeScreen/HomeScreen.tsx +++ b/packages/app/screens/HomeScreen/HomeScreen.tsx @@ -59,18 +59,7 @@ export const HomeScreen = () => { // return <>{!loading && }; return ; - return ( - - { - // !loading ? ( - // && !isNewOrientation - - // ) : ( - // - // ) - } - - ); + }; const data = [ @@ -329,29 +318,7 @@ const HomeScreenContent = () => { ); - return ( - <> - - - ); + }; // end diff --git a/packages/app/screens/LoginScreen/LoginScreen.tsx b/packages/app/screens/LoginScreen/LoginScreen.tsx index 48cc464..1b4dd15 100644 --- a/packages/app/screens/LoginScreen/LoginScreen.tsx +++ b/packages/app/screens/LoginScreen/LoginScreen.tsx @@ -249,48 +249,7 @@ export const LoginScreen = () => { ); - return ( - - {showUserInfo()} - {isLogin ? ( - - ) : ( - - - - - )} - - ); + }; const styles = StyleSheet.create({ diff --git a/packages/next/src/components/Carousel/Carousel.tsx b/packages/next/src/components/Carousel/Carousel.tsx index 3556f81..30d59e0 100644 --- a/packages/next/src/components/Carousel/Carousel.tsx +++ b/packages/next/src/components/Carousel/Carousel.tsx @@ -472,123 +472,5 @@ export const Carousel = (props: Props) => { ); - return ( -
-
-
- - - - - - - - - - -
-
-
-
-
-

The grand moment

-

Le tour

-

- Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam. -

- - Explore the tour - -
-
-
-
-
-
-
-

The big window

-

Minimal window

-

- Clear Glass Window With Brown and White Wooden Frame iste natus - error sit voluptatem accusantium doloremque laudantium. -

- - Read the article - -
-
-
-
-
-
-
-

Tropical palms

-

Palms

-

- Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam. -

- - Explore the palms - -
-
-
- -
-
-
-
-

Beach

-

The beach

-

- Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam. -

- - Explore the beach - -
-
-
- -
-
-
-
-

The white building

-

White building

-

- Sed ut perspiciatis unde omnis iste natus error sit voluptatem - accusantium doloremque laudantium, totam rem aperiam. -

- - Read the article - -
-
-
-
-
- ); + }; diff --git a/packages/next/src/pages/comic-detail.tsx b/packages/next/src/pages/comic-detail.tsx index b05116d..c511cce 100644 --- a/packages/next/src/pages/comic-detail.tsx +++ b/packages/next/src/pages/comic-detail.tsx @@ -721,42 +721,7 @@ function ComicDetail() { // // ) - return ( - - - Home - {data?.path ? ( - - ) : null} - {data?.title} - {data?.rate} - {data?.author} - {data?.detail} - {data?.follows} - {data?.info} - {data?.status} - - {data?.kind.map((kind) => ( - - ))} - - { - return {item.name} - }} - /> - - ) + } export default ComicDetail