Skip to content

Commit 135dbec

Browse files
committed
more joyride tests
1 parent c57034c commit 135dbec

File tree

1 file changed

+34
-3
lines changed

1 file changed

+34
-3
lines changed

pages/index.tsx

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,24 @@ const MapSite: NextPage = (energyData: any) => {
168168
// isFixed: true
169169
disableBeacon: true,
170170
},
171+
{
172+
target: '.introbtn',
173+
content: '???',
174+
title: 'Wärem',
175+
// isFixed: true
176+
disableBeacon: true,
177+
},
171178
{
172179
target: '.introbtn',
173180
content: 'END',
174-
title: 'This is my awesome feature!',
181+
title: 'Strom',
182+
// isFixed: true
183+
disableBeacon: true,
184+
},
185+
{
186+
target: '.introbtn',
187+
content: 'END',
188+
title: 'END',
175189
// isFixed: true
176190
disableBeacon: true,
177191
},
@@ -202,8 +216,26 @@ const MapSite: NextPage = (energyData: any) => {
202216
setJoyrideIndex(0)
203217
}
204218

219+
console.log(type)
220+
221+
if (type === 'tour:end') {
222+
console.log('HUHUHUHU')
223+
224+
// setRunJoyride(false)
225+
// setJoyrideIndex(0)
226+
}
227+
205228
if (tempIndex === 1) {
206-
setMapZoom(12)
229+
setZoomToCenter([13.30429217, 52.49626599])
230+
}
231+
if (tempIndex === 2) {
232+
setMapZoom(10)
233+
}
234+
if (tempIndex === 3) {
235+
setConsumptionType('electricity')
236+
}
237+
if (tempIndex === 4) {
238+
setConsumptionType('heat')
207239
}
208240
}
209241
}
@@ -215,7 +247,6 @@ const MapSite: NextPage = (energyData: any) => {
215247
callback={handleJoyrideCallback}
216248
run={runJoyride}
217249
steps={steps}
218-
debug
219250
showProgress
220251
disableScrolling={false}
221252
disableScrollParentFix

0 commit comments

Comments
 (0)