Commit 2c0fa1dd authored by tizah's avatar tizah Committed by tizah

added warning sign when analysis has runned

rebasin
parent 97663b38
import React, { useEffect, useState, useReducer } from 'react' import React, { useEffect, useState, useReducer } from 'react'
import Button from './Button/StaticAnalyserButton' // eslint-disable-line import Button from './Button/StaticAnalyserButton' // eslint-disable-line
import remixLib from '@remix-project/remix-lib' import remixLib from '@remix-project/remix-lib'
...@@ -71,7 +70,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { ...@@ -71,7 +70,10 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => {
if (state.data !== null) { if (state.data !== null) {
run(state.data, state.source, state.file) run(state.data, state.source, state.file)
} }
} else {
setAutoRun(true)
} }
return () => { } return () => { }
}, [autoRun, categoryIndex, state]) }, [autoRun, categoryIndex, state])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment