Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiorowski committed Nov 20, 2022
1 parent 4ac35c4 commit 2cc920e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"homepage": "https://svelte-init.vercel.app",
"license": "MIT",
"version": "1.5.2",
"version": "1.5.3",
"type": "module",
"scripts": {
"start": "vite dev",
Expand Down
11 changes: 6 additions & 5 deletions src/lib/components/modal/confirmation.modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
import { Button, Modal } from '$lib';
export let size: 'sm' | 'md' | 'lg' = 'md';
export let type: 'primary' | 'ghost' | 'error' = 'error';
export let actionBtn: 'primary' | 'ghost' | 'error' = 'error';
export let confirmBtm: 'primary' | 'ghost' | 'error' = 'error';
export let action: () => void;
export let confirmText = 'common.confirm';
export let cancelText = 'common.cancel';
export let confirmText = 'Confirm';
export let cancelText = 'Cancel';
let isOpen = false;
</script>

<Button on:click={() => (isOpen = true)} {type}>
<Button on:click={() => (isOpen = true)} type={actionBtn}>
<slot name="button" />
</Button>

Expand All @@ -22,6 +23,6 @@
<Button on:click={() => (isOpen = false)} type="ghost">
{cancelText}
</Button>
<Button on:click={action}>{confirmText}</Button>
<Button on:click={action} type={confirmBtm}>{confirmText}</Button>
</svelte:fragment>
</Modal>

1 comment on commit 2cc920e

@vercel
Copy link

@vercel vercel bot commented on 2cc920e Nov 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svelte-init – ./

svelte-init-git-main-mpiorowski.vercel.app
svelte-init-mpiorowski.vercel.app
svelte-init.vercel.app

Please sign in to comment.