|
1 | 1 | <script lang="ts"> |
2 | 2 | import { MessagingProviderType, type Models } from '@appwrite.io/console'; |
3 | | - import { CardGrid, Empty, PaginationInline, EmptySearch } from '$lib/components'; |
| 3 | + import { CardGrid, Empty, PaginationInline } from '$lib/components'; |
4 | 4 | import { onMount } from 'svelte'; |
5 | 5 | import { sdk } from '$lib/stores/sdk'; |
6 | 6 | import { invalidate } from '$app/navigation'; |
|
12 | 12 | import UserTargetsModal from '../userTargetsModal.svelte'; |
13 | 13 | import { isValueOfStringEnum } from '$lib/helpers/types'; |
14 | 14 | import { IconPlus } from '@appwrite.io/pink-icons-svelte'; |
15 | | - import { Alert, Icon, Layout, Table, Typography } from '@appwrite.io/pink-svelte'; |
| 15 | + import { |
| 16 | + Alert, |
| 17 | + Card, |
| 18 | + Empty as PinkEmpty, |
| 19 | + Icon, |
| 20 | + Layout, |
| 21 | + Table, |
| 22 | + Typography |
| 23 | + } from '@appwrite.io/pink-svelte'; |
16 | 24 | import { page } from '$app/state'; |
| 25 | + import { Link } from '$lib/elements'; |
17 | 26 |
|
18 | 27 | export let message: Models.Message & { data: Record<string, unknown> }; |
19 | 28 | export let selectedTargetsById: Record<string, Models.Target>; |
|
207 | 216 | {:else if isDraft} |
208 | 217 | <Empty on:click={() => (showTargets = true)}>Add a target</Empty> |
209 | 218 | {:else if !sum && !hasDeletedUsers} |
210 | | - <EmptySearch hidePagination> |
211 | | - <div class="u-text-center"> |
212 | | - No targets have been selected. |
213 | | - <p> |
214 | | - Need a hand? Check out our <Button |
215 | | - href="https://appwrite.io/docs/products/messaging/targets"> |
216 | | - documentation</Button |
| 219 | + <Card.Base padding="none"> |
| 220 | + <PinkEmpty type="secondary" title="No targets were selected"> |
| 221 | + <svelte:fragment slot="description"> |
| 222 | + Need a hand? Check out our <Link |
| 223 | + variant="muted" |
| 224 | + href="https://appwrite.io/docs/products/messaging/targets" |
| 225 | + external>documentation</Link |
217 | 226 | >. |
218 | | - </p> |
219 | | - </div> |
220 | | - </EmptySearch> |
| 227 | + </svelte:fragment> |
| 228 | + </PinkEmpty> |
| 229 | + </Card.Base> |
221 | 230 | {/if} |
222 | 231 | </svelte:fragment> |
223 | 232 | <svelte:fragment slot="actions"> |
|
0 commit comments