mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Tweaks
This commit is contained in:
parent
367be8908a
commit
a2f4896322
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ const DirectyIconEntry: React.FC<IconEntryProps> = ({
|
|||
|
||||
return (
|
||||
<motion.li
|
||||
key={path}
|
||||
drag
|
||||
layout
|
||||
dragConstraints={navRef}
|
||||
|
|
|
|||
|
|
@ -131,7 +131,6 @@ const ProcessWindow: React.FC<Process> = ({
|
|||
|
||||
return (
|
||||
<motion.article
|
||||
key={id}
|
||||
className={styles.animatedWindows}
|
||||
style={{
|
||||
zIndex: foregroundId === id ? foregroundZindex : windowOptions.zIndex,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user