This commit is contained in:
Dustin Brett 2020-11-16 00:45:37 -08:00
parent 367be8908a
commit a2f4896322
4 changed files with 1 additions and 3 deletions

View File

@ -20,7 +20,7 @@ const FileManager: React.FC<DirectoryType> = ({
}) => {
const [cwd, cd] = useState(directoryPath);
const [entries, setEntries] = useState<DirectoryEntry[]>([]);
const fs = useContext(FileContext);
const fs = useContext(FileContext); // Q: Do I need a context for `fs`?
const { load, open } = useContext(ProcessContext);
const { foreground, getState } = useContext(SessionContext);
const fileDropHandler = useFileDrop(async (dragEvent, file) => {

View File

@ -40,7 +40,6 @@ const DirectyIconEntry: React.FC<IconEntryProps> = ({
return (
<motion.li
key={path}
drag
layout
dragConstraints={navRef}

View File

@ -131,7 +131,6 @@ const ProcessWindow: React.FC<Process> = ({
return (
<motion.article
key={id}
className={styles.animatedWindows}
style={{
zIndex: foregroundId === id ? foregroundZindex : windowOptions.zIndex,