From 03d3bc4ef127123b4743b81b07a9512c7c14859b Mon Sep 17 00:00:00 2001 From: nino Date: Tue, 10 Dec 2024 17:32:07 +0400 Subject: [PATCH] Move ButtonsPagination.svelte component in ui-components --- .../lib/components/ButtonsPagination.svelte | 39 +++++++++++++++++++ packages/ui-components/src/lib/index.ts | 1 + tauri-app/src/lib/components/AppTable.svelte | 2 +- .../lib/components/ButtonsPagination.svelte | 39 ------------------- 4 files changed, 41 insertions(+), 40 deletions(-) create mode 100644 packages/ui-components/src/lib/components/ButtonsPagination.svelte delete mode 100644 tauri-app/src/lib/components/ButtonsPagination.svelte diff --git a/packages/ui-components/src/lib/components/ButtonsPagination.svelte b/packages/ui-components/src/lib/components/ButtonsPagination.svelte new file mode 100644 index 000000000..19e213016 --- /dev/null +++ b/packages/ui-components/src/lib/components/ButtonsPagination.svelte @@ -0,0 +1,39 @@ + + +
+ {#if loading} + + {/if} + +
+ {index} +
+ +
diff --git a/packages/ui-components/src/lib/index.ts b/packages/ui-components/src/lib/index.ts index 7278e5b90..7c92dc972 100644 --- a/packages/ui-components/src/lib/index.ts +++ b/packages/ui-components/src/lib/index.ts @@ -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 ButtonsPagination } from './components/ButtonsPagination.svelte'; //Types export type { AppStoresInterface } from './types/appStores.ts'; diff --git a/tauri-app/src/lib/components/AppTable.svelte b/tauri-app/src/lib/components/AppTable.svelte index 232341ebd..744cfd805 100644 --- a/tauri-app/src/lib/components/AppTable.svelte +++ b/tauri-app/src/lib/components/AppTable.svelte @@ -1,7 +1,7 @@ - -
- {#if loading} - - {/if} - -
- {index} -
- -