mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-17 10:57:32 +01:00
Fix SF list selection
This commit is contained in:
parent
236a5cd645
commit
48895c8d2d
@ -111,7 +111,12 @@ export function SourceFilesElement(): React.ReactElement {
|
|||||||
const maxLevel = getMaxLevel(sfObj);
|
const maxLevel = getMaxLevel(sfObj);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ListItemButton key={i + 1} onClick={() => setSelectedSf(e)} selected={selectedSf === e} sx={{ py: 0 }}>
|
<ListItemButton
|
||||||
|
key={i + 1}
|
||||||
|
onClick={() => setSelectedSf(e)}
|
||||||
|
selected={selectedSf.n === e.n}
|
||||||
|
sx={{ py: 0 }}
|
||||||
|
>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
disableTypography
|
disableTypography
|
||||||
primary={<Typography>{sfObj.name}</Typography>}
|
primary={<Typography>{sfObj.name}</Typography>}
|
||||||
|
Loading…
Reference in New Issue
Block a user