mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 04:02:15 +01:00
update dependencies, update eslint config, update optional ts props types
This commit is contained in:
@@ -6,8 +6,8 @@ const emit = defineEmits(['changed']);
|
||||
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
size: 'base' | 'large' | 'small';
|
||||
active: boolean;
|
||||
size?: 'base' | 'large' | 'small';
|
||||
active?: boolean;
|
||||
}>(),
|
||||
{
|
||||
size: 'base',
|
||||
@@ -40,7 +40,6 @@ function toggleState() {
|
||||
|
||||
<template>
|
||||
<button
|
||||
@click="toggleState"
|
||||
data-testid="timer_button"
|
||||
:class="
|
||||
twMerge(
|
||||
@@ -48,7 +47,8 @@ function toggleState() {
|
||||
buttonColorClasses,
|
||||
'flex items-center justify-center py-1 transition focus:outline-0 rounded-full text-white '
|
||||
)
|
||||
">
|
||||
"
|
||||
@click="toggleState">
|
||||
<Transition name="fade" mode="out-in">
|
||||
<svg
|
||||
v-if="props.active"
|
||||
|
||||
Reference in New Issue
Block a user