Skip to content

Commit

Permalink
Introduce new svg flag icons
Browse files Browse the repository at this point in the history
  • Loading branch information
eunjuhuss committed Dec 19, 2024
1 parent 2b32067 commit a7fd74f
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 13 deletions.
25 changes: 25 additions & 0 deletions img/flags/EuFlag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions img/flags/GlobalFlag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions img/flags/SvFlag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion img/flags/eu.svg

This file was deleted.

1 change: 0 additions & 1 deletion img/flags/se.svg

This file was deleted.

5 changes: 0 additions & 5 deletions img/flags/world.svg

This file was deleted.

12 changes: 6 additions & 6 deletions src/components/Dashboard/Identity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import ReactCountryFlag from "react-country-flag";
import { FormattedMessage, useIntl } from "react-intl";
import authnSlice from "slices/Authn";
import BankIdFlag from "../../../img/flags/BankID_logo.svg";
import EuFlag from "../../../img/flags/EuFlag.svg";
import FrejaFlag from "../../../img/flags/FOvalIndigo.svg";
import EuFlag from "../../../img/flags/eu.svg";
import SeFlag from "../../../img/flags/se.svg";
import WorldFlag from "../../../img/flags/world.svg";
import GlobalFlag from "../../../img/flags/GlobalFlag.svg";
import SvFlag from "../../../img/flags/SvFlag.svg";
import AccordionItemTemplate from "../Common/AccordionItemTemplate";
import BankID from "./BankID";
import { DashboardBreadcrumbs } from "./DashboardBreadcrumbs";
Expand Down Expand Up @@ -193,7 +193,7 @@ function VerifiedIdentitiesTable(): JSX.Element {
{identities?.nin?.verified && (
<figure className="grid-container identity-summary">
<div>
<img height="35" className="circle-icon" alt="Sweden" src={SeFlag} />
<img height="35" className="circle-icon" alt="Sweden" src={SvFlag} />
</div>
<div className="profile-grid-cell">
<strong>
Expand Down Expand Up @@ -310,7 +310,7 @@ function AccordionItemSwedish(): JSX.Element | null {
and not in case the NIN is already verified. */
return (
<AccordionItemTemplate
icon={<img height="35" className="circle-icon" alt="Sweden" src={SeFlag} />}
icon={<img height="35" className="circle-icon" alt="Sweden" src={SvFlag} />}
title={
<FormattedMessage
description="accordion item swedish title"
Expand Down Expand Up @@ -448,7 +448,7 @@ function AccordionItemWorld(): JSX.Element | null {

return (
<AccordionItemTemplate
icon={<img height="35" className="circle-icon" alt="World" src={WorldFlag} />}
icon={<img height="35" className="circle-icon" alt="World" src={GlobalFlag} />}
title={<FormattedMessage description="accordion item passport title" defaultMessage="Most countries" />}
additionalInfo={
<FormattedMessage
Expand Down

0 comments on commit a7fd74f

Please sign in to comment.