-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: added properties from react-router link component #74
base: main
Are you sure you want to change the base?
Conversation
src/common/app-link/app-link.tsx
Outdated
@@ -13,41 +13,55 @@ import type { Params, RouteName } from "../../routes/routes"; | |||
defined in this project. To link outside, use <a></a> tags as usual. | |||
*/ | |||
|
|||
type Route = { | |||
pathParams?: Params; |
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.
are we intentionally changing spaces to tabs?
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.
sorry, it was a misconfiguration on my code editor 😭
9005284
to
088be2c
Compare
9c5c44f
to
9e81d6b
Compare
// Extract pathParams from the routeName | ||
type AppLinkProps<R extends RouteName> = { | ||
type AppLinkProps = { |
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.
I'm wondering if it makes sense to do something like interface AppLinkProps extends <whatever the Link props type is>
@@ -13,26 +13,24 @@ import type { Params, RouteName } from "../../routes/routes"; | |||
defined in this project. To link outside, use <a></a> tags as usual. | |||
*/ | |||
|
|||
type AppRedirectProps<R extends RouteName> = { | |||
type Route = { |
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.
This type is duplicated, I'd prefer to have it centralized if possible
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.
Copilot reviewed 5 out of 5 changed files in this pull request and generated no suggestions.
Ticket/Card
Description of the change
Screenshot/Execution
N/A
Related PRs
N/A