mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
Add key
remove extra Checkbox prop
This commit is contained in:
@@ -148,7 +148,7 @@ function GlobalStats(props) {
|
||||
return (
|
||||
<div key={stat.key} style={{ padding: "10px" }}>
|
||||
<FormControlLabel
|
||||
control={<Checkbox checked={!prefs.includes(stat.key)} onChange={() => toggleStat(stat)} name={stat.heading} />}
|
||||
control={<Checkbox checked={!prefs.includes(stat.key)} onChange={() => toggleStat(stat)} />}
|
||||
label={stat.heading}
|
||||
/>
|
||||
</div>
|
||||
@@ -158,7 +158,7 @@ function GlobalStats(props) {
|
||||
</div>
|
||||
<div className="global-stats-container">
|
||||
{stats.map((stat) => {
|
||||
if (!prefs.includes(stat.key)) return <WatchTimeStats data={stat.data} heading={stat.heading} />;
|
||||
if (!prefs.includes(stat.key)) return <WatchTimeStats key={stat.key} data={stat.data} heading={stat.heading} />;
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user