-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/sdk-add-new-endpoints
- Loading branch information
Showing
19 changed files
with
506 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
import { QueryClientProvider, QueryErrorResetBoundary } from '@tanstack/react-query'; | ||
import { RouterProvider, createRouter, createRootRoute } from '@tanstack/react-router'; | ||
import { ErrorBoundary } from 'react-error-boundary'; | ||
|
||
import { ErrorFallback } from './components/ErrorFallback.js'; | ||
import { queryClient } from './lib/query.js'; | ||
import { IntegrationsList } from './views/IntegrationsList.js'; | ||
|
||
const rootRoute = createRootRoute({ | ||
component: IntegrationsList | ||
}); | ||
|
||
const routeTree = rootRoute.addChildren([]); | ||
|
||
const router = createRouter({ routeTree }); | ||
|
||
export const App: React.FC = () => { | ||
return <div className="text-3xl font-bold underline">Coucou</div>; | ||
return ( | ||
<QueryErrorResetBoundary> | ||
<ErrorBoundary FallbackComponent={ErrorFallback}> | ||
<QueryClientProvider client={queryClient}> | ||
<RouterProvider router={router} /> | ||
</QueryClientProvider> | ||
</ErrorBoundary> | ||
</QueryErrorResetBoundary> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const ErrorFallback: React.FC = () => { | ||
return <div className="p-4 text-red-base">An error occurred. Please refresh your page or contact us, support@nango.dev</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--radius: 0.5rem; | ||
} | ||
} | ||
|
||
body { | ||
font-size: 14px; | ||
} |
Oops, something went wrong.