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]: Technical: fix linting errors of @types/styled-components plugin #1834
Conversation
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
className: 'toolbar-item' | ||
})<StyledDivProps>` | ||
const StyledDiv = styled.div.attrs(props => ({ | ||
className: `toolbar-item${props.className ? ` ${props.className}` : ''}` |
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.
use classnames
here?
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.
fixed
className: 'file-upload__progress' | ||
})` | ||
const StyledFileProgress = styled.div.attrs(props => ({ | ||
className: `file-upload__progress${props.className ? ` ${props.className}` : ''}` |
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.
use classnames
here?
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.
fixed
color?: string; | ||
label?: string; | ||
}; | ||
dataset: KeplerTable; |
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 we keep the original minified type?
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.
yes, we can. Fixed
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
src/components/common/portaled.tsx
Outdated
overlayZIndex?: number; | ||
modalProps?: Partial<ReactModal.Props>; | ||
modalStyle?: Partial<typeof defaultModalStyle>; | ||
children: React.ReactNode; |
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.
shouldn't need to add children here
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.
fixed
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
@heshan0131 i've merged all PR's about styled-components. So i added @types/styled-components and resolved some errors left in this pr. Check changes out, plz. |
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev <evgeny.zhgulev@actionengine.com>
Signed-off-by: Evgeny Zhgulev evgeny.zhgulev@actionengine.com