-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
Contributions drawer in dashboard #10315
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
731cdd9
to
6c93ad7
Compare
* @typedef {{ target?: string, href?: string | Record<string, any>, animate?: any, className?: string, title?: string, onClick?: () => void, openInNewTab?: boolean, className?: string, children?: any, 'data-cy'?: string } & React.HTMLAnchorElement} LinkProps | ||
* @type React.ForwardRefRenderFunction<HTMLAnchorElement, LinkProps> | ||
*/ | ||
export default React.forwardRef((props, ref) => <Link innerRef={ref} {...props} />); |
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.
Why implement innerRef
and not use the default forwardRef param in the base component?
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.
Can you give me an example of what you mean? If you are refering to the name of the variable, the linter complains if I call it ref
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 meant implementing forwardRef in the component itself and not like a wrapper.
b1b2076
to
c40f801
Compare
92794ab
to
445269d
Compare
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 is awesome! Great work! Feel free to ship this.
Co-authored-by: Leo Kewitz <leo@opencollective.com>
Co-authored-by: Leo Kewitz <leo@opencollective.com>
Co-authored-by: Leo Kewitz <leo@opencollective.com>
851ec3e
to
d53ad28
Compare
Related opencollective/opencollective#7345
Description
Adds a preview feature of the new contribution management in dashboard. A rough draft of the contribution drawer details, previous charges and timeline.
Screenshots