Skip to content

Commit

Permalink
🐛 Added fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jan 31, 2024
1 parent fe2990a commit 8f34a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions apps/webapp/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import TaskPage from './components/events/EventsTable';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { Toaster } from 'react-hot-toast';
import { RootLayout } from './components/root-layout';
import QuickStartPage from './components/quickstart';
import ConfigurationPage from './components/configuration';
import ApiKeysPage from './components/api-keys';
import DashboardPage from './components/dashboard';
Expand Down Expand Up @@ -38,7 +37,7 @@ function App() {
<Router>
<Routes>
<Route path='/' element={<RootLayout />}>
<Route index element={<QuickStartPage />} />
<Route index element={<ConnectionsPage />} />
<Route path='/dashboard' element={<DashboardPage />} />
<Route path='/logs' element={<LogsPage />} />
<Route path='/tasks' element={<TaskPage />} />
Expand Down
6 changes: 3 additions & 3 deletions apps/webapp/src/components/api-keys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export default function ApiKeysPage() {
const {idProject} = useProjectStore();
const {profile} = useProfileStore();

if(isLoading){
return <LoadingSpinner className=""/>
}

if(error){
console.log("error apiKeys..");
Expand Down Expand Up @@ -61,6 +58,7 @@ export default function ApiKeysPage() {
<h2 className="text-lg font-bold tracking-tight">Manage your api keys.</h2>
</div>
<div className="flex space-y-8 md:flex pb-4">
{isLoading ? ( <LoadingSpinner className=""/>) : <>
<div></div>
<Dialog>
<DialogTrigger asChild>
Expand Down Expand Up @@ -99,6 +97,8 @@ export default function ApiKeysPage() {
</DialogFooter>
</DialogContent>
</Dialog>
</>
}
</div>
{tsApiKeys && <DataTable data={tsApiKeys} columns={columns} />}
</div>
Expand Down

0 comments on commit 8f34a0c

Please sign in to comment.