Skip to content

Commit

Permalink
fix(portal): capitalize env select options (#138)
Browse files Browse the repository at this point in the history
* fix(portal): capitalize env select options

* fix(portal): adjust check icon on quick start guide
  • Loading branch information
KsiBart authored Nov 15, 2024
1 parent 6e1e771 commit f8a2876
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import ApiActivityDiagram from "./ApiActivityDiagram";
import ErrorBrakedownDiagram from "./ErrorDiagram";
import MostPopularEndpoints from "./MostPopularEndpoints";
import styles from "./index.module.scss";
import { capitalize } from 'lodash';

export type DiagramProps = {
envId: string;
Expand Down Expand Up @@ -77,7 +78,7 @@ const DiagramWrapper = ({ envs }: Props) => {
return (
envs?.map((env) => ({
value: env.id,
label: env.name,
label: capitalize(env.name),
})) ?? []
);
}, [envs]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ const QuickStartGuide = () => {
goal as keyof (typeof quickStartGuideData)[keyof IQuickStartGuideObject]
] ? (
<Flex key={goal} gap={10}>
<CheckFilled />
<div className={styles.iconContainer}>
<CheckFilled />
</div>
<Text.LightMedium>
{i.goals[goal as keyof typeof i.goals]}
</Text.LightMedium>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
border-radius: 8px;
}

.iconContainer {
width: 20px;
}

.guideContainer {
justify-content: center;
align-items: center;
Expand Down

0 comments on commit f8a2876

Please sign in to comment.