Skip to content

Commit

Permalink
Merge branch 'develop' into 612-add-google-sign-in-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
epixieme authored Jul 12, 2024
2 parents d1055d8 + 1aa483f commit 8a411b7
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/features/auth/components/SignUpForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function SignUpForm({ isLoading, onCancel, onSignUp }: Props) {
<img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/google/google-original.svg" style={{ width: 24, height: 24 }} />
Continue With Google
</button>
</div>

</form>
);
}
Expand Down
17 changes: 10 additions & 7 deletions src/features/climate-feed/components/ClimateDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function ClimateDetailsModal({ showDetails, effectTitle, effectDescription, effe
<DialogContent sx={{ padding: 0 }}>
<CmTypography variant="h3" style={styles.title}>{capitalizeFirstLetter(effectTitle)}</CmTypography>

<img src={imageUrl} alt={effectTitle} style={styles.image} />
{imageUrl && <img src={imageUrl} alt={effectTitle} style={styles.image} />}

<TabbedContent
details={
Expand All @@ -63,18 +63,18 @@ function ClimateDetailsModal({ showDetails, effectTitle, effectDescription, effe
</div>

{effectSolutions.map((solution) => (
<div style={{ marginTop: 20 }}>
<ActionCard {...solution} key={solution.solutionTitle} onLearnMore={learnMoreHandler} />
<div style={{ marginTop: 20 }} key={solution.solutionTitle}>
<ActionCard {...solution} onLearnMore={learnMoreHandler} />
</div>
))}

<div style={{ marginBottom: 50 }}></div>
</>
}
sources={
<div style={{ padding: 20 }}>
<div style={{ padding: 20, marginBottom: 50 }}>
{effectSources.map((source, index) => (
<CmTypography key={index} variant='body' style={{ ...styles.link, paddingTop: 20 }}>{source}</CmTypography>
<CmTypography key={index} variant='body' style={styles.source}>{source}</CmTypography>
))}
</div>
}
Expand Down Expand Up @@ -112,10 +112,13 @@ const styles: { [key: string]: React.CSSProperties } = {
maxHeight: 360,
objectFit: 'cover',
},
link: {
source: {
cursor: 'pointer',
fontWeight: 600,
paddingTop: 20,
textDecoration: 'underline',
cursor: 'pointer',
wordBreak: 'break-word',
whiteSpace: 'pre-wrap',
}
};

Expand Down
9 changes: 6 additions & 3 deletions src/features/myth-feed/components/MythDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function MythDetailsModal({ showDetails, mythTitle, mythRebuttal, faultyLogicDes
sources={
<div style={{ marginTop: 20, marginBottom: 50 }}>
{mythSources.map((source, index) => (
<CmTypography key={index} variant='body' style={{ ...styles.link, paddingBottom: 20 }}>{source}</CmTypography>
<CmTypography key={index} variant='body' style={styles.source}>{source}</CmTypography>
))}
</div>
}
Expand Down Expand Up @@ -72,10 +72,13 @@ const styles: { [key: string]: React.CSSProperties } = {
letterSpacing: 1.2,
lineHeight: 1.5,
},
link: {
source: {
cursor: 'pointer',
fontWeight: 600,
paddingTop: 20,
textDecoration: 'underline',
cursor: 'pointer',
wordBreak: 'break-word',
whiteSpace: 'pre-wrap',
}
};

Expand Down
8 changes: 4 additions & 4 deletions src/features/quiz/components/PersonalValueCardSmall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function PersonalValueCardSmall({ valueName, shortDescription, subTitle }: Props
<img src={`/personal_values/small/${valueName.split(' ').join('_')}.gif`} alt={`${valueName} icon`} style={styles.image} />

<div style={styles.textContainer}>
<CmTypography variant="h3" style={{ margin: 0 }}>{capitalizeFirstLetter(valueName)}</CmTypography>
<CmTypography variant="h2" style={{ margin: 0 }}>{subTitle}</CmTypography>
<CmTypography variant="h3" style={{ margin: 0, textAlign: 'left' }}>{capitalizeFirstLetter(valueName)}</CmTypography>
<CmTypography variant="h2" style={{ margin: 0, textAlign: 'left' }}>{subTitle}</CmTypography>
</div>

<div onClick={() => setExpanded(!expanded)} style={{ cursor: 'pointer', marginRight: 20, display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
Expand All @@ -47,8 +47,8 @@ const styles: { [key: string]: React.CSSProperties } = {
justifyContent: 'space-between',
},
image: {
width: 80,
height: 80,
width: 70,
height: 70,
margin: 20,
},
textContainer: {
Expand Down
13 changes: 8 additions & 5 deletions src/features/solution-feed/components/SolutionDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function SolutionDetailsModal({ showDetails, solutionTitle, solutionType, imageU
<DialogContent sx={{ padding: 0 }}>
<CmClimateHeader preHeader={solutionType.toUpperCase() + ' ACTION'} header={solutionTitle} headerIcon={solutionType} />

<img src={imageUrl} alt={solutionTitle} style={styles.image} />
{imageUrl && <img src={imageUrl} alt={solutionTitle} style={styles.image} />}

<TabbedContent
details={
Expand All @@ -55,9 +55,9 @@ function SolutionDetailsModal({ showDetails, solutionTitle, solutionType, imageU
</div>
}
sources={
<div style={{ padding: 20 }}>
<div style={{ padding: 20, marginBottom: 50 }}>
{solutionSources.map((source, index) => (
<CmTypography key={index} variant='body' style={{ ...styles.link, paddingTop: 20 }}>{source}</CmTypography>
<CmTypography key={index} variant='body' style={styles.source}>{source}</CmTypography>
))}
</div>
}
Expand Down Expand Up @@ -92,10 +92,13 @@ const styles: { [key: string]: React.CSSProperties } = {
maxHeight: 360,
objectFit: 'cover',
},
link: {
source: {
cursor: 'pointer',
fontWeight: 600,
paddingTop: 20,
textDecoration: 'underline',
cursor: 'pointer',
wordBreak: 'break-word',
whiteSpace: 'pre-wrap',
}
};

Expand Down
3 changes: 2 additions & 1 deletion src/features/userB/components/UserBSharedImpactCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function UserBSharedImpactCard({ effectId, effectTitle, effectShortDescription,

<CmTypography variant='body' style={styles.description}>{effectShortDescription}</CmTypography>

<div style={{ paddingLeft: 20 }}>
<div style={{ paddingLeft: 20, textAlign: 'left' }}>
{relatedPersonalValues.map((value: string) => (
<PersonalValueTooltip value={value} key={value}>
<CmChip text={value} style={{ marginRight: 5, marginTop: 10 }} />
Expand All @@ -49,6 +49,7 @@ const styles: { [key: string]: React.CSSProperties } = {
title: {
textAlign: 'left',
paddingLeft: 20,
paddingRight: 20,
},
image: {
width: '100%',
Expand Down
12 changes: 8 additions & 4 deletions src/features/userB/components/UserBSharedImpactDetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function UserBSharedImpactDetailsModal({ showDetails, effectId, effectTitle, ima

<DialogContent sx={{ padding: 0 }}>
<CmTypography variant="h3" style={styles.title}>{capitalizeFirstLetter(effectTitle)}</CmTypography>

{imageUrl && <img src={imageUrl} alt={effectTitle} style={styles.image} />}

<TabbedContent
Expand All @@ -55,9 +56,9 @@ function UserBSharedImpactDetailsModal({ showDetails, effectId, effectTitle, ima
</div>
}
sources={
<div style={{ padding: 20 }}>
<div style={{ padding: 20, marginBottom: 50 }}>
{sources.map((source, index) => (
<CmTypography key={index} variant='body' style={{ ...styles.link, paddingTop: 20 }}>{source}</CmTypography>
<CmTypography key={index} variant='body' style={styles.source}>{source}</CmTypography>
))}
</div>
}
Expand Down Expand Up @@ -93,10 +94,13 @@ const styles: { [key: string]: React.CSSProperties } = {
maxHeight: 360,
objectFit: 'cover',
},
link: {
source: {
cursor: 'pointer',
fontWeight: 600,
paddingTop: 20,
textDecoration: 'underline',
cursor: 'pointer',
wordBreak: 'break-word',
whiteSpace: 'pre-wrap',
}
};

Expand Down
1 change: 1 addition & 0 deletions src/features/userB/components/UserBSharedSolutionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const styles: { [key: string]: React.CSSProperties } = {
title: {
textAlign: 'left',
paddingLeft: 20,
paddingRight: 20,
},
image: {
width: '100%',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ function UserBSharedSolutionDetailsModal({ showDetails, solutionId, solutionTitl

<DialogContent sx={{ padding: 0 }}>
<CmClimateHeader preHeader={solutionType.toUpperCase() + ' ACTION'} header={solutionTitle} headerIcon={solutionType} />

{imageUrl && <img src={imageUrl} alt={solutionTitle} style={styles.image} />}

<TabbedContent
Expand All @@ -53,9 +54,9 @@ function UserBSharedSolutionDetailsModal({ showDetails, solutionId, solutionTitl
</div>
}
sources={
<div style={{ padding: 20 }}>
<div style={{ padding: 20, marginBottom: 50 }}>
{solutionSources.map((source, index) => (
<CmTypography key={index} variant='body' style={{ ...styles.link, paddingTop: 20 }}>{source}</CmTypography>
<CmTypography key={index} variant='body' style={styles.source}>{source}</CmTypography>
))}
</div>
}
Expand Down Expand Up @@ -90,10 +91,13 @@ const styles: { [key: string]: React.CSSProperties } = {
maxHeight: 360,
objectFit: 'cover',
},
link: {
source: {
cursor: 'pointer',
fontWeight: 600,
paddingTop: 20,
textDecoration: 'underline',
cursor: 'pointer',
wordBreak: 'break-word',
whiteSpace: 'pre-wrap',
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/pages/UserAAuthorizedPages/ConversationsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ function ConversationsPage() {
value={friendsName}
onChange={(e) => setFriendsName(e.target.value)}
helperText={friendsName.length > 20 && 'Name must be less than 20 characters'}
fullWidth={false}
style={{ marginTop: 30, marginBottom: 30 }}
/>

Expand All @@ -84,6 +83,7 @@ const styles: { [key: string]: React.CSSProperties } = {
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
width: '100%',
},
openDrawerButton: {
backgroundColor: '#D0EEEB',
Expand Down

0 comments on commit 8a411b7

Please sign in to comment.