Commit 3706f4a7 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин 🕓
Browse files

fix: errors on build

parent c8f1421f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ const meta: Meta = {
      options: ['topRight', 'bottomRight', 'bottomLeft', 'topLeft', 'top', 'bottom'],
    },
    active: { control: 'boolean' },
    static: { control: 'boolean' },
    duration: { control: 'number' },
    width: { control: 'text' },
    header: { control: 'text' },
    text: { control: 'text' },
+1 −1
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ watch(active, () => {

    toastsContainer?.appendChild(toast.value);
    toastsContainer.style[positionParts.value[0] as 'top' | 'bottom'] = '20px';
    timeout = setTimeout(() => (active.value = false), (props.duration as number) * 1000);
    timeout = setTimeout(() => (active.value = false), (props.duration as number) * 1000) as unknown as number;
  } else if (props.duration) {
    toast.value.classList.remove('active');
    setTimeout(() => {