Skip to content

Commit

Permalink
chore(frontend): cleanup import .js (#2082)
Browse files Browse the repository at this point in the history
# Motivation

Our editors, or at least mine, Webstorm, sometimes adds `.js` at the end
of import that are automatically added or moved. This is useless.

# Changes

- Cleanup imports and remove `.js`.
  • Loading branch information
peterpeterparker authored Aug 21, 2024
1 parent 020c9f5 commit 6584747
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { EIGHT_DECIMALS } from '$lib/constants/app.constants';
import { i18n } from '$lib/stores/i18n.store';
import { replacePlaceholders } from '$lib/utils/i18n.utils';
import { balancesStore } from '$lib/stores/balances.store.js';
import { balancesStore } from '$lib/stores/balances.store';
import { BigNumber } from '@ethersproject/bignumber';
import type { TokenId } from '$lib/types/token';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/core/Menu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { page } from '$app/stores';
import AboutHow from '$lib/components/hero/about/AboutHow.svelte';
import AboutWhat from '$lib/components/hero/about/AboutWhat.svelte';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils.js';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
let visible = false;
let button: HTMLButtonElement | undefined;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { modalStore } from '$lib/stores/modal.store.js';
import { modalStore } from '$lib/stores/modal.store';
import { Html, Modal } from '@dfinity/gix-components';
import { i18n } from '$lib/stores/i18n.store';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { modalStore } from '$lib/stores/modal.store.js';
import { modalStore } from '$lib/stores/modal.store';
import { Html, Modal } from '@dfinity/gix-components';
import { i18n } from '$lib/stores/i18n.store';
import { replaceOisyPlaceholders } from '$lib/utils/i18n.utils';
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/src/lib/components/tokens/TokenBalance.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { formatToken } from '$lib/utils/format.utils.js';
import { balancesStore } from '$lib/stores/balances.store.js';
import { formatToken } from '$lib/utils/format.utils';
import { balancesStore } from '$lib/stores/balances.store';
import { BigNumber } from '@ethersproject/bignumber';
import type { Token } from '$lib/types/token';
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/lib/components/tokens/Tokens.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { authNotSignedIn, authSignedIn } from '$lib/derived/auth.derived.js';
import { authNotSignedIn, authSignedIn } from '$lib/derived/auth.derived';
import TokensMenu from '$lib/components/tokens/TokensMenu.svelte';
import Header from '$lib/components/ui/Header.svelte';
import TokensSignedIn from '$lib/components/tokens/TokensSignedIn.svelte';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { combinedDerivedSortedNetworkTokens } from '$lib/derived/network-tokens.derived.js';
import { combinedDerivedSortedNetworkTokens } from '$lib/derived/network-tokens.derived';
import TokenCardWithUrl from '$lib/components/tokens/TokenCardWithUrl.svelte';
import { onMount } from 'svelte';
import { unsafeLoadDefaultPublicIcrcTokens } from '$icp/services/icrc.services';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { authSignedIn } from '$lib/derived/auth.derived.js';
import { authSignedIn } from '$lib/derived/auth.derived';
import TransactionsSignedIn from '$lib/components/transactions/TransactionsSignedIn.svelte';
import TransactionsSignedOut from '$lib/components/transactions/TransactionsSignedOut.svelte';
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { nonNullish } from '@dfinity/utils';
import { routeNetwork, routeToken } from '$lib/derived/nav.derived.js';
import { networkICP } from '$lib/derived/network.derived.js';
import { routeNetwork, routeToken } from '$lib/derived/nav.derived';
import { networkICP } from '$lib/derived/network.derived';
import IcTransactions from '$icp/components/transactions/IcTransactions.svelte';
import Transactions from '$eth/components/transactions/Transactions.svelte';
</script>
Expand Down

0 comments on commit 6584747

Please sign in to comment.