mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +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:
@@ -41,7 +41,7 @@ const NewFileWizard: React.VoidFunctionComponent<NewFileWizardProps> = ({
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const [fileName, setFileName] = useState('');
|
||||
const files = useSelector((s) => s.fileStorage.files);
|
||||
const files = useSelector((s) => s.explorer.files);
|
||||
const fileNameValidation = validateFileName(
|
||||
fileName,
|
||||
pythonFileExtension,
|
||||
|
||||
Reference in New Issue
Block a user