fix e2e walkthrough test failures

pull/1671/head
Joseph Izang 3 years ago
parent 1e94190a6e
commit afeb4b89f4
  1. 10
      apps/remix-ide/src/walkthroughService.js
  2. 4
      libs/remix-ui/vertical-icons-panel/.eslintrc.json
  3. 5
      libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

@ -6,13 +6,8 @@ export class WalkthroughService {
} }
start (params) { start (params) {
<<<<<<< HEAD
document.addEventListener('doWalkThrough', (e) => { document.addEventListener('doWalkThrough', (e) => {
if (!localStorage.getItem('hadTour_initial')) { if (!localStorage.getItem('hadTour_initial')) {
=======
if (!localStorage.getItem('hadTour_initial')) {
document.addEventListener('doWalkThrough', (e) => {
>>>>>>> e0fcb6bcd (changes based on LianaHus comments complete)
introJs().setOptions({ introJs().setOptions({
steps: [{ steps: [{
title: 'Welcome to Remix IDE', title: 'Welcome to Remix IDE',
@ -52,13 +47,8 @@ export class WalkthroughService {
} }
}).start() }).start()
localStorage.setItem('hadTour_initial', true) localStorage.setItem('hadTour_initial', true)
<<<<<<< HEAD
} }
}) })
=======
})
}
>>>>>>> e0fcb6bcd (changes based on LianaHus comments complete)
} }
startFeatureTour () { startFeatureTour () {

@ -16,8 +16,4 @@
"no-unused-vars": "off", "no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error" "@typescript-eslint/no-unused-vars": "error"
} }
<<<<<<< HEAD
} }
=======
}
>>>>>>> b6322066e (update components and setttings)

@ -4,7 +4,8 @@ import React, {
Fragment, Fragment,
useEffect, useEffect,
useReducer, useReducer,
useRef useRef,
useState
} from 'react' } from 'react'
import './remix-ui-vertical-icons-panel.css' import './remix-ui-vertical-icons-panel.css'
@ -24,7 +25,7 @@ export function RemixUiVerticalIconsPanel ({
}: RemixUiVerticalIconsPanelProps) { }: RemixUiVerticalIconsPanelProps) {
const scrollableRef = useRef<any>() const scrollableRef = useRef<any>()
const iconPanelRef = useRef<any>() const iconPanelRef = useRef<any>()
const udappPanelRef = useRef<any>() // const [first] = useState(localStorage.getItem('firstTime'))
function onThemeChanged (themeType: any) { function onThemeChanged (themeType: any) {
const invert = themeType === 'dark' ? 1 : 0 const invert = themeType === 'dark' ? 1 : 0

Loading…
Cancel
Save