Removed some debug stuff

This commit is contained in:
Gregory Schier
2023-03-10 10:43:15 -08:00
parent 5c96e83a22
commit bdb877a936
4 changed files with 0 additions and 19 deletions

View File

@@ -1,21 +1,10 @@
import { useEffect, useState } from 'react';
import { useMount, useUnmount } from 'react-use';
import { ButtonLink } from '../components/ButtonLink';
import { Editor } from '../components/Editor';
import { Heading } from '../components/Heading';
import { VStack } from '../components/Stacks';
import { useWorkspaces } from '../hooks/useWorkspaces';
export function Workspaces(props: { path: string }) {
const workspaces = useWorkspaces();
const [value, setValue] = useState<string>('hello wolrd');
useUnmount(() => {
console.log('UNMOUNT WORKSPACES');
});
useMount(() => {
console.log('MOUNT WORKSPACES');
});
console.log('RENDER WORKSPACES');
return (
<VStack as="ul" className="p-12">
<Heading>Workspaces</Heading>
@@ -24,7 +13,6 @@ export function Workspaces(props: { path: string }) {
{w.name}
</ButtonLink>
))}
<Editor defaultValue={value} className="!bg-gray-50" onChange={setValue} />
</VStack>
);
}