Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ncomont committed Feb 20, 2024
1 parent 5a10728 commit f1b682e
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const styles = StyleSheet.create({
},
tcuCheckbox: {
top: 3, // center checkbox with text
flexDirection: "row",
alignItems: "center",
},
link: {
color: colors.partner[500],
Expand Down Expand Up @@ -325,33 +327,31 @@ export const OnboardingCompanyRegistration = ({
onPress={() => onChange(!value)}
style={styles.tcuCheckbox}
>
<Box direction="row" alignItems="center">
<LakeCheckbox value={value} isError={isNotNullish(error)} />
<Space width={8} />

<LakeText>
{formatNestedMessage("step.finalize.terms", {
firstLink: (
<Link target="blank" to={tcuUrl} style={styles.link}>
{t("emailPage.firstLink")}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
secondLink: (
<Link
target="blank"
to={tcuDocumentUri ?? "#"}
style={styles.link}
>
{t("emailPage.secondLink", { partner: projectName })}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
})}
</LakeText>
</Box>
<LakeCheckbox value={value} isError={isNotNullish(error)} />
<Space width={8} />

<LakeText>
{formatNestedMessage("step.finalize.terms", {
firstLink: (
<Link target="blank" to={tcuUrl} style={styles.link}>
{t("emailPage.firstLink")}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
secondLink: (
<Link
target="blank"
to={tcuDocumentUri ?? "#"}
style={styles.link}
>
{t("emailPage.secondLink", { partner: projectName })}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
})}
</LakeText>
</Pressable>
)}
</Field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ const styles = StyleSheet.create({
},
tcuCheckbox: {
top: 3, // center checkbox with text
flexDirection: "row",
alignItems: "center",
},
link: {
color: colors.partner[500],
Expand Down Expand Up @@ -194,33 +196,31 @@ export const OnboardingIndividualEmail = ({
onPress={() => onChange(!value)}
style={styles.tcuCheckbox}
>
<Box direction="row" alignItems="center">
<LakeCheckbox value={value} isError={isNotNullish(error)} />
<Space width={8} />
<LakeCheckbox value={value} isError={isNotNullish(error)} />
<Space width={8} />

<LakeText>
{formatNestedMessage("step.finalize.terms", {
firstLink: (
<Link target="blank" to={tcuUrl} style={styles.link}>
{t("emailPage.firstLink")}
<LakeText>
{formatNestedMessage("step.finalize.terms", {
firstLink: (
<Link target="blank" to={tcuUrl} style={styles.link}>
{t("emailPage.firstLink")}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
secondLink: (
<Link
target="blank"
to={tcuDocumentUri ?? "#"}
style={styles.link}
>
{t("emailPage.secondLink", { partner: projectName })}
<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
secondLink: (
<Link
target="blank"
to={tcuDocumentUri ?? "#"}
style={styles.link}
>
{t("emailPage.secondLink", { partner: projectName })}

<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
})}
</LakeText>
</Box>
<Icon name="open-filled" size={16} style={styles.linkIcon} />
</Link>
),
})}
</LakeText>
</Pressable>
)}
</Field>
Expand Down

0 comments on commit f1b682e

Please sign in to comment.