File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/ui/client/components Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import { provide , ref } from ' vue'
2+ import { provide , ref , useId } from ' vue'
33import { idFor , SMALL_TABS_CONTEXT } from ' ~/composables/small-tabs'
44
55const activeTab = ref <string | null >(null )
@@ -9,7 +9,7 @@ function setActive(key: string) {
99 activeTab .value = key
1010}
1111
12- const id = crypto . randomUUID ()
12+ const id = useId ()
1313
1414provide (SMALL_TABS_CONTEXT , {
1515 id ,
Original file line number Diff line number Diff line change 11<script setup lang="ts">
22import type { TestArtifactAttachment } from ' @vitest/runner'
3- import { computed , ref } from ' vue'
3+ import { computed , ref , useId } from ' vue'
44import { internalOrExternalUrl } from ' ~/composables/attachments'
55import VisualRegressionImageContainer from ' ./VisualRegressionImageContainer.vue'
66
@@ -21,7 +21,7 @@ const maxHeight = computed(() =>
2121
2222const splitPercentage = ref (50 )
2323
24- const inputId = crypto . randomUUID ()
24+ const inputId = useId ()
2525 </script >
2626
2727<template >
You can’t perform that action at this time.
0 commit comments