Skip to content

Commit

Permalink
fix: Unsubscribed groups page (#18849)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Nov 23, 2023
1 parent 6e51b92 commit 4c76462
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import { Meta, StoryFn } from '@storybook/react'
import { router } from 'kea-router'
import { useEffect } from 'react'
import { App } from 'scenes/App'
import { urls } from 'scenes/urls'

const meta: Meta = {
title: 'Scenes-App/Persons & Groups',
parameters: {
layout: 'fullscreen',
viewMode: 'story',
mockDate: '2023-07-04', // To stabilize relative dates
},
decorators: [],
}
export default meta

export const Persons: StoryFn = () => {
useEffect(() => {
router.actions.push(urls.persons())
}, [])
return <App />
}

export const Cohorts: StoryFn = () => {
useEffect(() => {
router.actions.push(urls.cohorts())
}, [])
return <App />
}

export const Groups: StoryFn = () => {
useEffect(() => {
router.actions.push(urls.groups(0))
}, [])
return <App />
}
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const personsManagementSceneLogic = kea<personsManagementSceneLogicType>(
...(showGroupsIntroductionPage
? [
{
key: 'groups-intro',
key: 'groups-0',
label: 'Groups',
url: urls.groups(0),
content: <Groups groupTypeIndex={0} />,
Expand Down

0 comments on commit 4c76462

Please sign in to comment.