Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Dec 11, 2024
2 parents 7aaf52c + 847284e commit 586ec40
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
13 changes: 13 additions & 0 deletions packages/ui-components/src/lib/components/ButtonLoading.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script lang="ts">
import { Button, Spinner } from 'flowbite-svelte';
export let loading = false;
export let disabled = false;
</script>

<Button disabled={loading || disabled} {...$$props} on:click>
{#if loading}
<Spinner class="mr-2 h-4 w-4" color="white" />
{/if}
<slot />
</Button>
1 change: 1 addition & 0 deletions packages/ui-components/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export { default as Heading } from './components/Heading.svelte';
export { default as Text } from './components/Text.svelte';
export { default as DropdownProperty } from './components/DropdownProperty.svelte';
export { default as IconError } from './components/IconError.svelte';
export { default as ButtonLoading } from './components/ButtonLoading.svelte';

//Types
export type { AppStoresInterface } from './types/appStores.ts';
Expand Down
13 changes: 0 additions & 13 deletions tauri-app/src/lib/components/ButtonLoading.svelte

This file was deleted.

2 changes: 1 addition & 1 deletion tauri-app/src/lib/components/FileTextarea.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type { TextFileStore } from '$lib/storesGeneric/textFileStore';
import ButtonLoading from './ButtonLoading.svelte';
import { ButtonLoading } from '@rainlanguage/ui-components';
export let textFile: TextFileStore;
</script>
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/lib/components/InputLedgerWallet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { reportErrorToSentry } from '$lib/services/sentry';
import IconWarning from '$lib/components/IconWarning.svelte';
import { ledgerWalletAddress, ledgerWalletDerivationIndex } from '$lib/stores/wallets';
import ButtonLoading from './ButtonLoading.svelte';
import { ButtonLoading } from '@rainlanguage/ui-components';
import { Hash, HashType } from '@rainlanguage/ui-components';
const maskOptions = {
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/lib/components/InputWalletConnect.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import IconWarning from '$lib/components/IconWarning.svelte';
import { Alert } from 'flowbite-svelte';
import ButtonLoading from './ButtonLoading.svelte';
import { ButtonLoading } from '@rainlanguage/ui-components';
import { Hash, HashType } from '@rainlanguage/ui-components';
import {
walletconnectConnect,
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/lib/components/ModalExecute.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Button, Modal } from 'flowbite-svelte';
import ButtonLoading from '$lib/components/ButtonLoading.svelte';
import { ButtonLoading } from '@rainlanguage/ui-components';
import { settings } from '$lib/stores/settings';
import { ledgerWalletAddress } from '$lib/stores/wallets';
import InputLedgerWallet from '$lib/components/InputLedgerWallet.svelte';
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/routes/orders/add/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { PageHeader } from '@rainlanguage/ui-components';
import CodeMirrorDotrain from '$lib/components/CodeMirrorDotrain.svelte';
import ButtonLoading from '$lib/components/ButtonLoading.svelte';
import { ButtonLoading } from '@rainlanguage/ui-components';
import FileTextarea from '$lib/components/FileTextarea.svelte';
import { Label, Button, Spinner, Tabs, TabItem } from 'flowbite-svelte';
import { RawRainlangExtension, type Problem } from 'codemirror-rainlang';
Expand Down

0 comments on commit 586ec40

Please sign in to comment.