From 92f04059e87b0da5fd072726893d56de1bfa7995 Mon Sep 17 00:00:00 2001 From: Kyle Date: Mon, 2 Oct 2023 16:25:39 -0700 Subject: [PATCH] fix: unnecessary withDefaults --- src/runtime/components/Adsbygoogle.vue | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/runtime/components/Adsbygoogle.vue b/src/runtime/components/Adsbygoogle.vue index e3c9ac9..9c4617b 100644 --- a/src/runtime/components/Adsbygoogle.vue +++ b/src/runtime/components/Adsbygoogle.vue @@ -6,11 +6,17 @@ import type { AdFormats } from '../../module' const { adClient, + adFullWidthResponsive = false, + adLayout = null, + adLayoutKey = null, + adSlot = null, + adStyle = { display: 'block' }, analyticsDomainName, analyticsUacct, hideUnfilled, includeQuery, -} = withDefaults(defineProps<{ + pageUrl = null, +} = defineProps<{ adClient?: string adSlot?: string | null adFormat?: AdFormats | string @@ -23,17 +29,7 @@ const { analyticsUacct?: string analyticsDomainName?: string includeQuery?: boolean -}>(), -{ - adFullWidthResponsive: false, - adLayout: null, - adLayoutKey: null, - pageUrl: null, - adSlot: null, - adStyle: () => ({ display: 'block' }), - adClient: undefined, - hideUnfilled: undefined, - }) +}>() const {