Skip to content

Commit

Permalink
Merge pull request #492 from cornell-dti/helen/frontend-cornellians-say
Browse files Browse the repository at this point in the history
fix capitalization issue
  • Loading branch information
leihelen authored Dec 17, 2024
2 parents 8f47ade + 0c41745 commit 85d07fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/modules/Course/Components/CornelliansSay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ type SummaryProps = {
}
const CornelliansSay = ({ classSummary, summaryTags }: SummaryProps) => {
const summaryTagsMap = new Map(Object.entries(summaryTags));

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used

Check warning on line 14 in client/src/modules/Course/Components/CornelliansSay.tsx

View workflow job for this annotation

GitHub Actions / build

'summaryTagsMap' is assigned a value but never used
const capitalizeFirstLetter = (word: string) => {
return word.charAt(0).toUpperCase() + word.slice(1);
};
return (
<div className={styles.container}>
<div className={styles.header}>
Expand All @@ -34,7 +37,7 @@ const CornelliansSay = ({ classSummary, summaryTags }: SummaryProps) => {
: styles.neutralTag
}`}
>
{adjective} {category}
{capitalizeFirstLetter(adjective)} {category}
</div>
))}
</div>
Expand Down

0 comments on commit 85d07fb

Please sign in to comment.