[frontend]: Re-add cluster toggle to Sidepanel

This commit is contained in:
2025-03-10 18:17:01 +00:00
parent 3eefe47ef1
commit 12f72c4f6a

View File

@ -175,6 +175,15 @@ const Sidebar = ({ selectedSources, setSelectedSources, clusteringEnabled, setCl
setEnabledSources={setEnabledSources} setEnabledSources={setEnabledSources}
/> />
))} ))}
<div style={{marginTop: "10px", display: "flex", alignItems: "center", gap: "8px"}}>
<input
type="checkbox"
id="toggleClustering"
checked={clusteringEnabled}
onChange={() => setClusteringEnabled(!clusteringEnabled)}
/>
<label htmlFor="toggleClustering">Cluster overlapping icons</label>
</div>
<button onClick={handleSubmit} style={{marginTop: "10px", color: "white"}}>Submit</button> <button onClick={handleSubmit} style={{marginTop: "10px", color: "white"}}>Submit</button>
</div> </div>
)} )}