Skip to content

Commit

Permalink
Merge branch 'css-flags-component' of github.com:candela97/AugmentedS…
Browse files Browse the repository at this point in the history
…team into candela97-css-flags-component
  • Loading branch information
tfedor committed Aug 27, 2024
2 parents 9614be1 + f32114f commit 85b73f3
Show file tree
Hide file tree
Showing 5 changed files with 787 additions and 276 deletions.
269 changes: 0 additions & 269 deletions src/css/flags.css

This file was deleted.

5 changes: 3 additions & 2 deletions src/js/Content/Features/Store/Common/FRegionalPricing.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import {L} from "@Core/Localization/Localization";
import {__regionUnavailable} from "@Strings/_strings";
import type {PackageDetailsPrice} from "./FRegionalPricing";
import "@CSS/flags.css";
import FlagIcon from "@Options/Modules/Icons/FlagIcon.svelte";
export let countries: string[];
export let prices: Record<string, PackageDetailsPrice>;
Expand Down Expand Up @@ -79,7 +79,8 @@
{/if}
{#each countries as country}
{@const apiPrice = prices[country]}
<div class="es-regprice es-flag es-flag--{country}">
<div class="es-regprice">
<FlagIcon {country} />
{#if apiPrice}
{@const priceRegion = new Price(apiPrice.final / 100, apiPrice.currency)}
{@const priceUser = getPriceUser(priceRegion, country)}
Expand Down
Loading

0 comments on commit 85b73f3

Please sign in to comment.