Skip to content

Commit

Permalink
Rewrite ToggleSwitch component in TS
Browse files Browse the repository at this point in the history
  • Loading branch information
man90es committed Mar 7, 2024
1 parent 5e3f607 commit 110b397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/misc/ToggleSwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<img class="icon" :src="require(`@/assets/icons/toggle_${on ? 'on' : 'off'}.svg`)" @click="toggle" />
</template>

<script setup>
<script setup lang="ts">
import { ref } from "vue"
const props = defineProps({ modelValue: Boolean })
const props = defineProps<{ modelValue: boolean }>()
const emit = defineEmits(["update:modelValue"])
const on = ref(props.modelValue)
Expand Down

0 comments on commit 110b397

Please sign in to comment.