Skip to content

Commit 366b552

Browse files
committed
change to use a tag
1 parent b4ac616 commit 366b552

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/blocks/helpers/google-drive.vue

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ export default {
3232

3333
<template>
3434
<div class="notion-google-drive">
35-
<component
36-
v-if="hasPageLinkOptions"
37-
class="notion-google-drive-link"
38-
v-bind="pageLinkProps(block.value.id)"
39-
:is="props.pageLinkOptions?.component"
40-
>
35+
<a rel="noopener noreferrer" target="_blank" :href="properties.url" class="notion-google-drive-link">
4136
<div class="notion-google-drive-preview">
4237
<img :src="constructThumbnail(properties.thumbnail)" :alt="properties.title" />
4338
</div>
@@ -61,6 +56,6 @@ export default {
6156
<div className="notion-google-drive-body-source-domain">{{ constructDomain(properties.url) }}</div>
6257
</div>
6358
</div>
64-
</component>
59+
</a>
6560
</div>
6661
</template>

0 commit comments

Comments
 (0)