-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* refactor: turning premium status on and off * added: empty home banner for reviewer
- Loading branch information
Showing
5 changed files
with
74 additions
and
6 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
14 changes: 12 additions & 2 deletions
14
apps/expo/src/components/home-empty-section/EmptyCollection.tsx
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
33 changes: 33 additions & 0 deletions
33
apps/expo/src/components/home-empty-section/EmptyReviewer.tsx
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,33 @@ | ||
import React, { FC } from "react"; | ||
import { SafeAreaView, Text, TouchableOpacity, View } from "react-native"; | ||
import HomeEmptyReviewerBanner from "../../icons/home-empty-section/HomeEmptyReviewerBanner"; | ||
import { useNavigation } from "@react-navigation/native"; | ||
|
||
const HomeEmptyReviewer: FC = () => { | ||
const navigation = useNavigation(); | ||
|
||
const goToCreateReviewerScreen = () => { | ||
navigation.navigate("CreateReviewer"); | ||
}; | ||
|
||
return ( | ||
<SafeAreaView> | ||
<View className="h-[75%] items-center"> | ||
<HomeEmptyReviewerBanner /> | ||
</View> | ||
|
||
<View className="bottom-8 left-9 h-[23%] w-[30%]"> | ||
<TouchableOpacity | ||
className=" h-[100%] rounded-lg bg-purple-600" | ||
onPress={goToCreateReviewerScreen} | ||
> | ||
<Text className="font-nunito top-2 h-4 w-[100%] break-words text-center text-xs font-bold text-white"> | ||
Create Reviewer | ||
</Text> | ||
</TouchableOpacity> | ||
</View> | ||
</SafeAreaView> | ||
); | ||
}; | ||
|
||
export default HomeEmptyReviewer; |
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
Oops, something went wrong.