mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
fix viewselector bug
This commit is contained in:
parent
cc838f6c28
commit
0f4eb24a8d
@ -7,7 +7,7 @@ import { setContentView } from "../../ducks/ui/flow";
|
|||||||
function ViewItem({ name, setContentView, children }) {
|
function ViewItem({ name, setContentView, children }) {
|
||||||
return (
|
return (
|
||||||
<li>
|
<li>
|
||||||
<a href="#" onClick={() => setContentView(name)}>
|
<a href="#" onClick={e => {e.preventDefault(); setContentView(name)}}>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user