-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #579 from BinaryStudioAcademy/task/bt-502-add-veri…
…fication-message-after-onboarding bt-502: Mobile - Add verification message after onboarding steps for both roles
- Loading branch information
Showing
9 changed files
with
134 additions
and
4 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
12 changes: 12 additions & 0 deletions
12
mobile/src/bundles/common/components/verification-message/styles.ts
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,12 @@ | ||
import { Color } from '~/bundles/common/enums/enums'; | ||
import { StyleSheet } from '~/bundles/common/styles/styles'; | ||
|
||
const styles = StyleSheet.create({ | ||
text: { | ||
borderRadius: 20, | ||
backgroundColor: Color.WARNING, | ||
color: '#FFFFFF', | ||
}, | ||
}); | ||
|
||
export { styles }; |
20 changes: 20 additions & 0 deletions
20
mobile/src/bundles/common/components/verification-message/verification-message.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,20 @@ | ||
import React from 'react'; | ||
|
||
import { Text } from '~/bundles/common/components/components'; | ||
import { TextCategory } from '~/bundles/common/enums/enums'; | ||
import { globalStyles } from '~/bundles/common/styles/styles'; | ||
|
||
import { styles } from './styles'; | ||
|
||
const VerificationMessage: React.FC = () => { | ||
return ( | ||
<Text | ||
category={TextCategory.CAPTION} | ||
style={[styles.text, globalStyles.p5, globalStyles.ph10]} | ||
> | ||
Waiting for approval | ||
</Text> | ||
); | ||
}; | ||
|
||
export { VerificationMessage }; |
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
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
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,12 @@ | ||
import { Color } from '~/bundles/common/enums/enums'; | ||
import { StyleSheet } from '~/bundles/common/styles/styles'; | ||
|
||
const styles = StyleSheet.create({ | ||
header: { | ||
backgroundColor: Color.BACKGROUND, | ||
borderBottomWidth: 1, | ||
borderColor: Color.INPUT, | ||
}, | ||
}); | ||
|
||
export { styles }; |
38 changes: 36 additions & 2 deletions
38
mobile/src/bundles/talent/screens/talent-profile/talent-profile.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 |
---|---|---|
@@ -1,9 +1,43 @@ | ||
import React from 'react'; | ||
|
||
import { Text } from '~/bundles/common/components/components'; | ||
import { | ||
StatusBar, | ||
Text, | ||
VerificationMessage, | ||
View, | ||
} from '~/bundles/common/components/components'; | ||
import { Color, TextCategory } from '~/bundles/common/enums/enums'; | ||
import { useAppSelector } from '~/bundles/common/hooks/hooks'; | ||
import { globalStyles } from '~/bundles/common/styles/styles'; | ||
|
||
import { styles } from './style'; | ||
|
||
const TalentProfile: React.FC = () => { | ||
return <Text>Talent Profile screen</Text>; | ||
const { isApproved } = | ||
useAppSelector(({ common }) => common.onboardingData) ?? {}; | ||
|
||
return ( | ||
<> | ||
<StatusBar | ||
barStyle="dark-content" | ||
backgroundColor={Color.BACKGROUND} | ||
/> | ||
<View | ||
style={[ | ||
globalStyles.pv25, | ||
globalStyles.pl25, | ||
globalStyles.pr10, | ||
styles.header, | ||
globalStyles.flexDirectionRow, | ||
globalStyles.justifyContentSpaceBetween, | ||
globalStyles.alignItemsCenter, | ||
]} | ||
> | ||
<Text category={TextCategory.H3}>Your profile</Text> | ||
{!isApproved && <VerificationMessage />} | ||
</View> | ||
</> | ||
); | ||
}; | ||
|
||
export { TalentProfile }; |
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
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