Skip to content

Commit

Permalink
Merge branch 'master' into funnel-single-step
Browse files Browse the repository at this point in the history
# Conflicts:
#	frontend/__snapshots__/components-sharing--dashboard-sharing--dark.png
#	frontend/__snapshots__/components-sharing--dashboard-sharing--light.png
  • Loading branch information
thmsobrmlr committed Mar 7, 2024
2 parents 7f0f4bf + 42074f1 commit 7aed1d8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions frontend/src/lib/components/Sharing/SharingModal.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Meta } from '@storybook/react'
import { BindLogic } from 'kea'
import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { useState } from 'react'
import { dashboardLogic } from 'scenes/dashboard/dashboardLogic'

import { useStorybookMocks } from '~/mocks/browser'
import { useAvailableFeatures } from '~/mocks/features'
Expand Down Expand Up @@ -100,11 +102,19 @@ const Template = (args: Partial<SharingModalProps> & { licensed?: boolean }): JS
}

export const DashboardSharing = (): JSX.Element => {
return <Template title="Dashboard permissions" dashboardId={123} />
return (
<BindLogic logic={dashboardLogic} props={{ id: 123 }}>
<Template title="Dashboard permissions" dashboardId={123} />
</BindLogic>
)
}

export const DashboardSharingLicensed = (): JSX.Element => {
return <Template title="Dashboard permissions" licensed dashboardId={123} />
return (
<BindLogic logic={dashboardLogic} props={{ id: 123 }}>
<Template title="Dashboard permissions" licensed dashboardId={123} />
</BindLogic>
)
}

export const InsightSharing = (): JSX.Element => {
Expand Down

0 comments on commit 7aed1d8

Please sign in to comment.