Skip to content

Commit

Permalink
refactor: add ExternalLink component to avoid vitepress component usa…
Browse files Browse the repository at this point in the history
…ge (fix storybook)
  • Loading branch information
Romakita committed Apr 25, 2024
1 parent e611700 commit c380807
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/.vitepress/theme/molecules/link/ExternalLink.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script setup lang="ts">
interface Props {
href: string;
}
const props = withDefaults(defineProps<Props>(), {});
</script>
<template>
<a :href="props.href"><slot /></a>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import {ref, onMounted} from "vue";
import {useGithubContributors} from "../../composables/api/useGithubContributors";
import ContributorItems from "../../molecules/contributors/ContributorItems.vue";
import TestComponent from "./TestComponent.vue";
import {useThemeConfig} from "../../composables/config/useThemeConfig";
import type {GitHubUser} from "../../composables/api/interfaces/GithubUser";
Expand Down

0 comments on commit c380807

Please sign in to comment.