fix: remove un-controlled checked warning

This commit is contained in:
2025-03-11 11:57:58 +01:00
parent 82ffa06a00
commit b07c2fd8ab

View File

@@ -151,7 +151,7 @@ export const GraphComponent = () => {
<div className="controls">
<div className="control" onClick={handleMutuality}>
<div className="switch">
<input type="checkbox" checked={mutuality} />
<input type="checkbox" checked={mutuality} onChange={() => {}} />
<span className="slider round"></span>
</div>
<span>mutuality</span>
@@ -160,7 +160,7 @@ export const GraphComponent = () => {
<div className="control" onClick={handleThreed}>
<span>2D</span>
<div className="switch">
<input type="checkbox" checked={threed} />
<input type="checkbox" checked={threed} onChange={() => {}} />
<span className="slider round"></span>
</div>
<span>3D</span>
@@ -192,7 +192,7 @@ export const GraphComponent = () => {
<div className="control" onClick={handlePopularity}>
<div className="switch">
<input type="checkbox" checked={popularity} />
<input type="checkbox" checked={popularity} onChange={() => {}} />
<span className="slider round"></span>
</div>
<span>