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:
David Lechner
2022-04-04 18:59:13 -05:00
parent 05731e50fc
commit c6cf0608f4
9 changed files with 103 additions and 96 deletions
+1 -1
View File
@@ -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,