try to fix the scenario sharing in production urls #43
Annotations
10 errors and 3 warnings
build:
src/components/GravitySimulator/GravitySimulator.tsx#L60
'SimulationScenario' is defined but never used
|
build:
src/components/GravitySimulator/GravitySimulator.tsx#L364
'trails' is defined but never used
|
build:
src/components/GravitySimulator/GravitySimulator.tsx#L364
'force' is defined but never used
|
build:
src/components/GravitySimulator/GravitySimulator.tsx#L385
'trails' is defined but never used
|
build:
src/components/GravitySimulator/GravitySimulator.tsx#L385
'force' is defined but never used
|
build:
src/components/SaveScenarioModal/SaveScenarioModal.tsx#L3
'Scenario' is defined but never used
|
build:
src/components/SaveScenarioModal/SaveScenarioModal.tsx#L4
'createShareableLink' is defined but never used
|
build:
src/components/ScenarioPanel/ScenarioPanel.tsx#L24
'onClose' is defined but never used
|
build:
src/components/SimulatorSettings/SimulatorSettings.tsx#L1
'useState' is defined but never used
|
build:
src/components/SimulatorSettings/SimulatorSettings.tsx#L15
'onClose' is defined but never used
|
build:
src/components/GravitySimulator/GravitySimulator.tsx#L125
React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead
|
build:
src/components/ScenarioPanel/ScenarioPanel.tsx#L38
React Hook useEffect has a missing dependency: 'onSelectScenario'. Either include it or remove the dependency array. If 'onSelectScenario' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
build:
src/contexts/SettingsContext.tsx#L126
Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components
|