Skip to content

Commit

Permalink
change 'Okonomi' ? 'Økonomi'
Browse files Browse the repository at this point in the history
 🐰
  • Loading branch information
jennifer-fintlabs committed Dec 13, 2024
1 parent 4cfc65e commit c8a86dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/routes/komponenter.$id/SwaggerTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface EndpointTableProps {
component: IComponent;
}

const EndpointTable = ({ component }: EndpointTableProps) => {
const SwaggerTable = ({ component }: EndpointTableProps) => {
return (
<Table>
<Table.Body>
Expand Down Expand Up @@ -38,4 +38,4 @@ const EndpointTable = ({ component }: EndpointTableProps) => {
);
};

export default EndpointTable;
export default SwaggerTable;
7 changes: 6 additions & 1 deletion app/routes/komponenter._index/ComponentsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ const ComponentsTable = ({
const value = e.target.value; // The value of the checkbox
const isChecked = e.target.checked; // Whether the checkbox is checked or unchecked

console.log('Toggled component:', value, 'Checked:', isChecked);

if (toggle) {
const formData = new FormData();
formData.append('componentName', value);
Expand All @@ -83,7 +85,10 @@ const ComponentsTable = ({
<KeyVerticalIcon title="key icon" fontSize="1.5rem" />
)}
<FormSummary.Heading level="2">
{capitalizeFirstLetter(groupName)}
{/* Hacky code.. quick fix that i personally hate... sorry to the next person! */}
{capitalizeFirstLetter(
groupName === 'okonomi' ? 'Økonomi' : groupName
)}
</FormSummary.Heading>
</HStack>
</FormSummary.Header>
Expand Down
1 change: 1 addition & 0 deletions app/routes/komponenter._index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default function Index() {
items={components}
selectedItems={selectedComponents}
toggle={handleFormSubmit}
isManaged={false}
/>
</>
);
Expand Down

0 comments on commit c8a86dc

Please sign in to comment.