Skip to content

Commit

Permalink
fix: sort dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
andresin87 committed Jan 25, 2024
1 parent e554fd5 commit 6f91682
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .storybook/preview.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import '../src/tailwind.css'
import './sb-theming.css'
import { ToC } from '@docs/helpers/ToC'
import queryString from 'query-string'

import { DocsContainer } from '@storybook/blocks'
import { withThemeByDataAttribute } from '@storybook/addon-styling'
import { Icon } from '@spark-ui/icon'
import { ShareExpand } from '@spark-ui/icons/dist/icons/ShareExpand'

import '../src/tailwind.css'
import './sb-theming.css'
import { ToC } from '@docs/helpers/ToC'

const ExampleContainer = ({ children, ...props }) => {
return (
<DocsContainer {...props}>
Expand Down Expand Up @@ -52,13 +52,13 @@ export const decorators = [
attributeName: 'data-theme',
}),
(storyFn, { id, viewMode }) => {
const {globals} = queryString.parse(window.top?.location.search)
const { globals } = queryString.parse(window.top?.location.search)
return (
<div className="relative w-full">
{viewMode === 'docs' && (
<div className="absolute -right-lg -top-xl">
<a
href={`/iframe.html?${queryString.stringify({id, globals})}`}
href={`/iframe.html?${queryString.stringify({ id, globals })}`}
target="_blank"
className="text-basic hover:text-basic-hovered focus:text-basic-focused enabled:active:text-basic-pressed"
>
Expand Down

0 comments on commit 6f91682

Please sign in to comment.