Skip to content

Commit

Permalink
using fetch version of dsn widget
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Aug 15, 2024
1 parent 402121b commit 88ede73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions apps/vue-storybook/.storybook/_mock-components.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// import and assign mock components
import { action } from '@storybook/addon-actions'
import DsnWidget from '@explorer-1/vue/src/components/DsnWidget/DsnWidget.vue'

export default (app) => {
// nuxt-link mock component
Expand All @@ -18,4 +19,7 @@ export default (app) => {
template:
'<a href="#" @click.prevent="log()" :class="this.class" v-bind="$attrs"><slot></slot></a>'
})

// use static dsn widget instead of fetch
app.component('FetchDsnWidget', DsnWidget)
}
2 changes: 1 addition & 1 deletion packages/vue/src/components/DsnWidget/DsnWidget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</span>
<span
v-if="data.location"
class="mr-1"
class="mr-1 mt-.5"
aria-hidden="true"
>
{{ data.location }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
</template>
</div>
<!-- DSN Widget -->
<DsnWidget />
<FetchDsnWidget />
<!-- asteroid watch -->
<div
v-if="asteroidWatch"
Expand Down

0 comments on commit 88ede73

Please sign in to comment.