@@ -3,6 +3,8 @@ import type { Meta } from '@storybook/react';
33
44import SendbirdProvider from '../../lib/Sendbird' ;
55import GroupChannel from '../../modules/GroupChannel' ;
6+ import { STORYBOOK_APP_ID , STORYBOOK_USER_ID , STORYBOOK_NICKNAME } from '../common/const' ;
7+ import { getSampleChannel } from '../common/getSampleChannel' ;
68
79const meta : Meta < typeof GroupChannel > = {
810 title : '1.Module/GroupChannel' ,
@@ -105,9 +107,9 @@ export const Default = (args): React.ReactElement => {
105107 return (
106108 < div style = { { height : 500 } } >
107109 < SendbirdProvider
108- appId = "FEA2129A-EA73-4EB9-9E0B-EC738E7EB768"
109- // appId="2D7B4CDB-932F-4082-9B09-A1153792DC8D"
110- userId = "hoon20230802"
110+ appId = { STORYBOOK_APP_ID }
111+ userId = { STORYBOOK_USER_ID }
112+ nickname = { STORYBOOK_NICKNAME }
111113 breakpoint = { / i P h o n e | i P a d | i P o d | A n d r o i d / i. test ( navigator . userAgent ) }
112114 >
113115 < GroupChannel
@@ -117,8 +119,9 @@ export const Default = (args): React.ReactElement => {
117119 </ div >
118120 ) ;
119121} ;
122+ const channel = await getSampleChannel ( { appId : STORYBOOK_APP_ID , userId : STORYBOOK_USER_ID } ) ;
120123Default . args = {
121- channelUrl : "sendbird_group_channel_316207824_6a62239b0cb650a6feae8466701ffdd9890989f5" ,
124+ channelUrl : channel . url ,
122125 isReactionEnabled : true ,
123126 isMessageGroupingEnabled : true ,
124127 showSearchIcon : true ,
0 commit comments