File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,14 @@ const VisualizationClassroom = () => {
121121 }
122122 } ;
123123
124+ const closeTutorial = ( ) => {
125+ setCookie ( "firstVisit" , "true" , {
126+ path : "/" ,
127+ maxAge : 7 * 24 * 60 * 60 , // 7일(초 단위)
128+ } ) ;
129+ setIsTutorialVisible ( false ) ;
130+ } ;
131+
124132 // zustand store
125133 const { focus } = useEditorStore ( ) ;
126134 const isGptToggle = useGptTooltipStore ( ( state ) => state . isGptToggle ) ;
@@ -210,6 +218,9 @@ const VisualizationClassroom = () => {
210218 left : `${ tutorialPosition . left } px` ,
211219 } }
212220 >
221+ < button className = "tutorial-close-button" onClick = { closeTutorial } >
222+ ×
223+ </ button >
213224 < div className = "tutorial-content" >
214225 < h2 > { steps [ currentStep ] . title } </ h2 >
215226 < p > { steps [ currentStep ] . description } </ p >
You can’t perform that action at this time.
0 commit comments