Skip to content

Commit

Permalink
Merge pull request #87 from OCA-UFCG/refact/map-title
Browse files Browse the repository at this point in the history
change the map title to follow the CMS format
  • Loading branch information
LeilaFarias authored Sep 27, 2024
2 parents 40b25e1 + ff0872e commit 53d06e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/MapsSection/MapsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
} from "./MapsSection.styles";
import { useEffect, useState } from "react";
import { IEEInfo, ISectionHeader } from "@/utils/interfaces";
import { capitalize } from "@/utils/functions";
import { defaultEEInfo } from "@/utils/constants";
import { Icon } from "../Icon/Icon";
import { SectionHeader } from "../SectionHeader/SectionHeader";
Expand Down Expand Up @@ -106,7 +105,7 @@ const MapsSection = ({
>
<VisuHeader>
<VisuName active={(tag.id === currentVisu.id).toString()}>
{capitalize(tag.name)}
{tag.name}
</VisuName>
<IconWrapper>
<VisuIcon
Expand Down
3 changes: 1 addition & 2 deletions src/components/VisuItem/VisuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { IVisuMenuItems } from "@/utils/interfaces";
import { Input, ItemWrapper, Label } from "./VisuItem.styles";
import { capitalize } from "@/utils/functions";

export const VisuItem = ({
info,
Expand All @@ -27,7 +26,7 @@ export const VisuItem = ({
onChange={() => onChange(id)}
onClick={() => onClick(id, false)}
/>
<Label htmlFor={id}>{capitalize(name)}</Label>
<Label htmlFor={id}>{name}</Label>
</ItemWrapper>
);
};

0 comments on commit 53d06e4

Please sign in to comment.