From 72b429321553841ac1ff48cf974bfc65da01bb06 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 19 Dec 2022 12:23:39 -0300
Subject: pretty

---
 .../merchant-backoffice-ui/src/AdminRoutes.tsx     | 65 ++++++++++------------
 1 file changed, 30 insertions(+), 35 deletions(-)

(limited to 'packages/merchant-backoffice-ui/src/AdminRoutes.tsx')

diff --git a/packages/merchant-backoffice-ui/src/AdminRoutes.tsx b/packages/merchant-backoffice-ui/src/AdminRoutes.tsx
index d3eb8a5b9..7f86d92ab 100644
--- a/packages/merchant-backoffice-ui/src/AdminRoutes.tsx
+++ b/packages/merchant-backoffice-ui/src/AdminRoutes.tsx
@@ -16,43 +16,38 @@
 import { h, VNode } from "preact";
 import Router, { route, Route } from "preact-router";
 import InstanceCreatePage from "./paths/admin/create/index.js";
-import InstanceListPage from './paths/admin/list/index.js';
-
+import InstanceListPage from "./paths/admin/list/index.js";
 
 export enum AdminPaths {
-  list_instances = '/instances',
-  new_instance = '/instance/new',
+  list_instances = "/instances",
+  new_instance = "/instance/new",
 }
 
 export function AdminRoutes(): VNode {
-  
-  return <Router>
-
-    <Route path={AdminPaths.list_instances} component={InstanceListPage}
-
-      onCreate={() => {
-        route(AdminPaths.new_instance);
-      }}
-
-      onUpdate={(id: string): void => {
-        route(`/instance/${id}/update`);
-      }}
-
-    />
-
-    <Route path={AdminPaths.new_instance} component={InstanceCreatePage}
-
-      onBack={() => route(AdminPaths.list_instances)}
-
-      onConfirm={() => {
-        // route(AdminPaths.list_instances);
-      }}
-
-      // onError={(error: any) => {
-      // }}
-      
-    />
-
-
-  </Router>
-}
\ No newline at end of file
+  return (
+    <Router>
+      <Route
+        path={AdminPaths.list_instances}
+        component={InstanceListPage}
+        onCreate={() => {
+          route(AdminPaths.new_instance);
+        }}
+        onUpdate={(id: string): void => {
+          route(`/instance/${id}/update`);
+        }}
+      />
+
+      <Route
+        path={AdminPaths.new_instance}
+        component={InstanceCreatePage}
+        onBack={() => route(AdminPaths.list_instances)}
+        onConfirm={() => {
+          // route(AdminPaths.list_instances);
+        }}
+
+        // onError={(error: any) => {
+        // }}
+      />
+    </Router>
+  );
+}
-- 
cgit v1.2.3

