mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 11:04:49 +00:00
explorer: move files state from fileStorage
This state should be exclusivly used to for displaying files in the explorer, so the state should be in the explorer branch of the reducer tree.
This commit is contained in:
@@ -24,7 +24,7 @@ const RenameFileDialog: React.VFC = () => {
|
||||
const [baseName, extension] = oldName.split(/(\.\w+)$/);
|
||||
|
||||
const [newName, setNewName] = useState(baseName);
|
||||
const files = useSelector((s) => s.fileStorage.files);
|
||||
const files = useSelector((s) => s.explorer.files);
|
||||
const result = validateFileName(
|
||||
newName,
|
||||
extension,
|
||||
|
||||
Reference in New Issue
Block a user