-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Ts migration #756
base: bundlephobia
Are you sure you want to change the base?
Ts migration #756
Conversation
@@ -92,7 +106,7 @@ function ExportList({ exports, totalSize, isLoading }) { | |||
size={exportDictionary[letter][0].gzip} | |||
totalSize={totalSize} | |||
name={exportDictionary[letter][0].name} | |||
path={exportDictionary[letter][0].path} | |||
// path={exportDictionary[letter][0].path} |
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 did we need to comment this out?
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 did we need to comment this out?
I think the child component does not use path
}px`, | ||
}} | ||
> | ||
{dep.percentShare.toFixed(1)} | ||
{(dep.percentShare || 0).toFixed(1)} |
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 looks rather verbose. We should ensure that if percentShare
is nullable, the right fallback value is set on the API side.
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.
So how do you want to handle this?
Add typescript migration for the frontend