fix: make sonner wrapper client-only in docs MainLayout.vue

This commit is contained in:
sadeghbarati 2024-01-23 12:02:35 +03:30
parent 9ad7fcfd6d
commit d4a283d470

View File

@ -288,7 +288,9 @@ watch(() => $route.path, (n) => {
</DialogContent>
</Dialog>
<DefaultToaster />
<NewYorkSonner :theme="isDark ? 'dark' : 'light'" />
<ClientOnly>
<NewYorkSonner :theme="isDark ? 'dark' : 'light'" />
</ClientOnly>
<NewYorkToaster />
</div>
</template>