Skip to content

Commit

Permalink
Fix : Add file to fix the goto function Error
Browse files Browse the repository at this point in the history
 - #8
  • Loading branch information
carboxaminoo committed Mar 6, 2024
1 parent fb53c79 commit 719f362
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions mz_v1_front/src/components/button/moving_filled.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<script>
import { goto } from '$app/navigation';
export let styleVariant = "outlined";
let className = "";
export { className as class };
export let style;
const variantsClassName = "style-variant-" + styleVariant;
export let name = "Do something";
export let type = "button";
export let targetPath = "/";
</script>

<button
type = {type}
on:click={goto(targetPath)}
style="{'background: var(--neutral-10, #486284);border-radius: 50px; border-style: solid; border-color: var(--neutral-10, #486284); border-width: 1px; padding: 12px 20px 12px 20px; display: flex; flex-direction: row; gap: 10px; align-items: center; justify-content: center; position: relative; overflow: hidden;' + style}"
>
<div
style="
color: var(--neutral-0, #ffffff);
text-align: left;
font-family: var(--body-small-font-family, 'DmSans-Regular', sans-serif);
font-size: var(--body-small-font-size, 24px);
line-height: var(--body-small-line-height, 24px);
font-weight: var(--body-small-font-weight, 400);
position: relative;
"
>
{name}
</div>
</button>

0 comments on commit 719f362

Please sign in to comment.