Skip to content

Commit

Permalink
Merge pull request #1078 from Open-Earth-Foundation/nina/feat/ON-2797…
Browse files Browse the repository at this point in the history
…/inviteCollaborators/fixEmail

bug: [ON-2797] fix email format
  • Loading branch information
thehighestprimenumber authored Jan 28, 2025
2 parents 784c61c + ca38a87 commit 4b4bf3f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions app/src/lib/emails/InviteUserToMultipleCitiesTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,14 @@ export function InviteUserToMultipleCitiesTemplate({
<div style={cityBox} key={name}>
<div
style={{
background: `url('https://flagsapi.com/${locode!.split(" ")[0]}/flat/64.png'), no-repeat`,
background: `url('https://flagsapi.com/${locode!.split(" ")[0]}/flat/64.png') no-repeat center center`,
backgroundSize: "cover",
height: "32px",
width: "32px",
backgroundOrigin: "content-box",
flexShrink: 0,
}}
/>
<Text
style={{
fontSize: "14px",
fontStyle: "normal",
fontWeight: "500",
lineHeight: "20px",
letterSpacing: "0.5px",
}}
>
{name}
</Text>
<div style={cityNameText}>{name}</div>
</div>
))}
</div>
Expand All @@ -108,6 +98,7 @@ export function InviteUserToMultipleCitiesTemplate({
}

export default InviteUserToMultipleCitiesTemplate;

const buttonSection = {
marginTop: "36px",
marginBottom: "36px",
Expand Down Expand Up @@ -153,16 +144,6 @@ const paragraph = {
color: "#484848",
};

const cityBox = {
display: "flex",
padding: "16px",
alignItems: "center",
gap: "16px",
borderRadius: "8px",
border: "1px solid #E6E7FF",
margin: "32px",
};

const urlLink = {
fontSize: "14px",
padding: "16px",
Expand All @@ -179,3 +160,22 @@ const footerText = {
fontWeight: "400",
color: "#79797A",
};

const cityBox = {
display: "flex",
padding: "16px",
alignItems: "center",
gap: "16px",
borderRadius: "8px",
border: "1px solid #E6E7FF",
margin: "32px",
};

const cityNameText = {
fontSize: "14px",
fontStyle: "normal",
fontWeight: "500",
lineHeight: "32px", // Match this with the flag height
letterSpacing: "0.5px",
color: "#484848",
};

0 comments on commit 4b4bf3f

Please sign in to comment.