Skip to content

Commit

Permalink
chore: pr changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSin committed May 27, 2024
1 parent b2ef41d commit b36e4a3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 23 deletions.
8 changes: 4 additions & 4 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@
"message": "Close"
},
"sharedComponents.ProjectInviteBottomSheet.InviteCancelled.projectInviteCanceled": {
"message": "Your invitation to {projName} has been canceled."
"message": "Your invitation to {projectName} has been canceled."
},
"sharedComponents.ProjectInviteBottomSheet.NewInviteBottomSheetContent.acceptInvite": {
"message": "Accept Invite"
Expand All @@ -966,10 +966,10 @@
"message": "Decline Invite"
},
"sharedComponents.ProjectInviteBottomSheet.NewInviteBottomSheetContent.invitedToJoin": {
"message": "You've been invited to join {projName}"
"message": "You've been invited to join {projectName}"
},
"sharedComponents.ProjectInviteBottomSheet.NewInviteBottomSheetContent.joinProject": {
"message": "Join Project {projName}"
"message": "Join Project {projectName}"
},
"sharedComponents.ProjectInviteBottomSheet.goToMap": {
"message": "Go To Map"
Expand All @@ -981,7 +981,7 @@
"message": "Success"
},
"sharedComponents.ProjectInviteBottomSheet.youHaveJoined": {
"message": "You have joined {projName}"
"message": "You have joined {projectName}"
},
"sharedComponents.RoleWithIcon.coordinator": {
"message": "Coordinator"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const m = defineMessages({
},
projectInviteCanceled: {
id: 'sharedComponents.ProjectInviteBottomSheet.InviteCancelled.projectInviteCanceled',
defaultMessage: 'Your invitation to {projName} has been canceled.',
defaultMessage: 'Your invitation to {projectName} has been canceled.',
},
});

Expand Down Expand Up @@ -42,7 +42,7 @@ export const InviteCanceledBottomSheetContent = ({
description={
projectName
? formatMessage(m.projectInviteCanceled, {
projName: projectName,
projectName,
})
: undefined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const m = defineMessages({
},
youHaveJoined: {
id: 'sharedComponents.ProjectInviteBottomSheet.youHaveJoined',
defaultMessage: 'You have joined {projName}',
defaultMessage: 'You have joined {projectName}',
},
goToSync: {
id: 'sharedComponents.ProjectInviteBottomSheet.goToSync',
Expand Down Expand Up @@ -67,7 +67,7 @@ export const InviteSuccessBottomSheetContent = ({
]}
title={formatMessage(m.success)}
description={formatMessage(m.youHaveJoined, {
projName: projectName,
projectName,
})}
icon={<GreenCheck />}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {View} from 'react-native';
import {LIGHT_GREY} from '../../lib/styles';
import InviteIcon from '../../images/AddPersonCircle.svg';
import {defineMessages, useIntl} from 'react-intl';
import {StyleSheet} from 'react-native';

const m = defineMessages({
declineInvite: {
Expand All @@ -16,11 +17,11 @@ const m = defineMessages({
},
joinProject: {
id: 'sharedComponents.ProjectInviteBottomSheet.NewInviteBottomSheetContent.joinProject',
defaultMessage: 'Join Project {projName}',
defaultMessage: 'Join Project {projectName}',
},
invitedToJoin: {
id: 'sharedComponents.ProjectInviteBottomSheet.NewInviteBottomSheetContent.invitedToJoin',
defaultMessage: "You've been invited to join {projName}",
defaultMessage: "You've been invited to join {projectName}",
},
});

Expand Down Expand Up @@ -54,23 +55,13 @@ export const NewInviteBottomSheetContent = ({
},
]}
title={formatMessage(m.joinProject, {
projName: projectName || '',
projectName: projectName || '',
})}
description={formatMessage(m.invitedToJoin, {
projName: projectName || '',
projectName: projectName || '',
})}
icon={
<View
style={{
borderColor: LIGHT_GREY,
borderWidth: 1,
borderRadius: 100,
alignItems: 'center',
shadowColor: '#171717',
shadowOffset: {width: -2, height: 4},
shadowOpacity: 0.2,
shadowRadius: 3,
}}>
<View style={styles.inviteIcon}>
<InviteIcon
style={{borderWidth: 1, borderColor: LIGHT_GREY}}
fill={LIGHT_GREY}
Expand All @@ -82,3 +73,16 @@ export const NewInviteBottomSheetContent = ({
/>
);
};

const styles = StyleSheet.create({
inviteIcon: {
borderColor: LIGHT_GREY,
borderWidth: 1,
borderRadius: 100,
alignItems: 'center',
shadowColor: '#171717',
shadowOffset: {width: -2, height: 4},
shadowOpacity: 0.2,
shadowRadius: 3,
},
});

0 comments on commit b36e4a3

Please sign in to comment.