remove fs watch v1 incorrect api use

This commit is contained in:
Nikita
2024-09-05 11:56:44 +03:00
parent 217f4f15e3
commit 60ac19651a
3 changed files with 139 additions and 143 deletions

View File

@@ -1,7 +1,7 @@
"use client"
import { useAccount } from "@/lib/providers/jazz-provider"
import { open } from "@tauri-apps/plugin-dialog"
// import { open } from "@tauri-apps/plugin-dialog"
export default function TauriRoute() {
const { me } = useAccount({
@@ -12,7 +12,7 @@ export default function TauriRoute() {
// TODO: ugly code, just to get folder connecting working
return (
<div className="mb-5 flex flex-col">
{me?.root?.connectedFolderPath && (
{/* {me?.root?.connectedFolderPath && (
<div className="flex flex-col gap-4">
<div>Connected folder: {me.root.connectedFolderPath}</div>
<button
@@ -39,8 +39,8 @@ export default function TauriRoute() {
Disconnect folder
</button>
</div>
)}
{!me?.root?.connectedFolderPath && (
)} */}
{/* {!me?.root?.connectedFolderPath && (
<button
onClick={async () => {
const folderPath = await open({
@@ -55,7 +55,7 @@ export default function TauriRoute() {
>
Connect folder
</button>
)}
)} */}
{/* TODO: loads a lot more data than expected */}
{/* {JSON.stringify(me?.root?.personalPages)} */}
</div>