-
Notifications
You must be signed in to change notification settings - Fork 12
fix(frontend): Line breaks on tools pages, descriptions are sentenced per line #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
|
|
||
|
|
||
| type NavLinkProps = { | ||
| to: string | ||
| children: React.ReactNode | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,12 @@ export default function App() { | |
| } | ||
|
|
||
| export function ErrorBoundary() { | ||
| const error = useRouteError() | ||
| let error: unknown | ||
| try { | ||
| error = useRouteError() | ||
| } catch (e) { | ||
| error = e | ||
| } | ||
|
Comment on lines
-45
to
+50
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove these unrelated changes. |
||
|
|
||
| if (isRouteErrorResponse(error)) { | ||
| return ( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,10 +110,6 @@ export const useUIActions = (): UIActions => { | |
| return context | ||
| } | ||
|
|
||
| export const useUIState = (): UIState => { | ||
| const state = useContext(UIStateContext) | ||
| if (!state) { | ||
| throw new Error('useUIState must be used within a UIProvider') | ||
| } | ||
| return state | ||
| export const useUIState = (): UIState | undefined => { | ||
| return useContext(UIStateContext) | ||
|
Comment on lines
-113
to
+114
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove these unrelated changes. |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,15 @@ export default { | |
| if (url.pathname === '/') { | ||
| return Response.redirect(new URL(`${APP_BASEPATH}/`, request.url), 302) | ||
| } | ||
|
|
||
| if (url.pathname === '/favicon.ico') { | ||
| return new Response(null, { status: 404 }) | ||
| } | ||
|
|
||
| if (!url.pathname.startsWith(APP_BASEPATH)) { | ||
| return new Response(null, { status: 404 }) | ||
| } | ||
|
|
||
|
Comment on lines
+27
to
+35
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's remove these unrelated changes. |
||
| const serverBuild = await build() | ||
| const requestHandler = createRequestHandler(serverBuild as ServerBuild) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.