Skip to content

Commit

Permalink
add optional contact us text setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lieblich authored and Aaron Lieblich committed Feb 12, 2025
1 parent 2d7642e commit 7cddf0e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/client/Locomotion/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AppsFlyerFramework: 971521cf5b890c2afeab2f2c91734547b8b169ca
boost: 57d2868c099736d80fcd648bf211b4431e51a558
boost: 7dcd2de282d72e344012f7d6564d024930a6a440
BVLinearGradient: 34a999fda29036898a09c6a6b728b0b4189e1a44
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
Expand Down Expand Up @@ -1108,6 +1108,6 @@ SPEC CHECKSUMS:
Yoga: c618b544ff8bd8865cdca602f00cbcdb92fd6d31
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 6a43fa9c77c3b3cce3caf9d98acbe87eca852130
PODFILE CHECKSUM: 60efc9f5f49fb780edb55aa41fe1652f3e0a6ef3

COCOAPODS: 1.15.2
1 change: 1 addition & 0 deletions examples/client/Locomotion/src/context/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import settingsKeys from './keys';
const FIVE_MINS_IN_SECONDS = 5 * 60;
const fieldNameToSettingKeyMap = {
contactUsUrl: settingsKeys.CONTACT_US_URL,
contactUsText: settingsKeys.CONTACT_US_TEXT,
termsOfUseUrl: settingsKeys.TERMS_OF_USE_URL,
privacyPolicyUrl: settingsKeys.PRIVACY_POLICY_URL,
contactEmail: settingsKeys.CONTACT_EMAIL,
Expand Down
1 change: 1 addition & 0 deletions examples/client/Locomotion/src/context/settings/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
ENFORCE_PROFILE_PICTURE: 'riderApp.enforceProfilePicture',
MIN_APP_VERSION: 'riderApp.minAppVersion',
CONTACT_US_URL: 'riderApp.contactUsUrl',
CONTACT_US_TEXT: 'riderApp.contactUsText',
TERMS_OF_USE_URL: 'riderApp.termsOfUseUrl',
PRIVACY_POLICY_URL: 'riderApp.privacyPolicyUrl',
CONTACT_EMAIL: 'riderApp.contactEmail',
Expand Down
3 changes: 2 additions & 1 deletion examples/client/Locomotion/src/pages/ContactUs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default ({ menuSide }) => {
termsUrl: null,
privacyUrl: null,
contactUsUrl: null,
contactUsText: null,
contactEmail: null,
contactPhone: null,
});
Expand Down Expand Up @@ -159,7 +160,7 @@ export default ({ menuSide }) => {
{settings.contactUsUrl ? (
<NoTitleCard onPress={() => openContactUs()}>
<LearnMoreButton onPress={() => openContactUs()}>
<LearnMoreText>{i18n.t('contactUs.learnMore')}</LearnMoreText>
<LearnMoreText>{settings.contactUsText || i18n.t('contactUs.learnMore')}</LearnMoreText>
<LearnMoreIcon Svg={arrowBack} fill="#24aaf2" />
</LearnMoreButton>
</NoTitleCard>
Expand Down
3 changes: 3 additions & 0 deletions examples/client/Locomotion/src/pages/ContactUs/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const LearnMoreButton = styled(Button)`

export const LearnMoreText = styled(Text)`
margin-right: 10px;
max-width: 80%;
flex-shrink: 1;
flex-wrap: wrap;
`;

export const ContactUsPageView = styled(SafeView)`
Expand Down

0 comments on commit 7cddf0e

Please sign in to comment.