From 3b8c7e391e1f370af74df30a14a699a49543f918 Mon Sep 17 00:00:00 2001
From: Sam Nystrom <sam@samnystrom.dev>
Date: Sat, 16 Mar 2024 21:09:02 +0000
Subject: refactor: extract NodeEditor into a component

---
 src/index.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index 6fdf07e..cd8c870 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -3,8 +3,7 @@ import { useMemo } from 'preact/hooks';
 import { Router } from 'preact-router';
 import PocketBase from 'pocketbase';
 import { Pb } from './context.ts';
-import { Home, SignUp, LogIn, ProjectsList } from './pages';
-import NodeEditor from './NodeEditor.tsx';
+import { Home, SignUp, LogIn, ProjectsList, Editor } from './pages';
 import './index.css';
 
 export const App = () => {
@@ -16,7 +15,7 @@ export const App = () => {
 				<SignUp path="/signup" />
 				<LogIn path="/login" />
 				<ProjectsList path="/:user" />
-				<NodeEditor path="/:user/:project" />
+				<Editor path="/:user/:project" />
 			</Router>
 		</Pb.Provider>
 	);
-- 
cgit v1.2.3

