-
Notifications
You must be signed in to change notification settings - Fork 182
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
Changes forNew Antd Components and Refactor Ones #727
Conversation
@@ -24,6 +24,7 @@ import { getAliasList } from "./utils"; | |||
import { CssSummary } from "./components/cssSummary/CssSummary"; | |||
import { Tree } from "@atrilabs/forest"; | |||
import { BoxShadow } from "./components/box-shadow/BoxShadow"; | |||
import {ListStyle} from "./components/list-style/ListStyle"; |
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 is your linter not working? There must be a gap in between like this{ ListStyle }
.
} | ||
>((props, ref) => { | ||
const { custom } = props; | ||
console.log("disabled is", props.custom.disabled); |
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.
Remove this console.log
e.stopPropagation(); // stop event propagation | ||
return; | ||
} else { | ||
console.log("else"); |
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.
remove console.log
@@ -34,6 +41,7 @@ const Accordion = forwardRef< | |||
() => <img src={props.custom?.expandIcon} alt={props.custom?.expandIcon} />, | |||
[props.custom] | |||
); | |||
console.log("items", props.custom.items); |
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.
remove console.log
); | ||
const { custom } = props; | ||
const onChange = (currentSlide: number) => { | ||
console.log(currentSlide); |
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 think you should attach an onChange callback to the manifest of Carousel and call that here.
className?: string; | ||
children: React.ReactNode[]; | ||
} | ||
>((props, ref) => { | ||
console.log("props.styles", props.styles); |
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.
Remove console.log
Reference
Add reference to a related issue that this pull request is addressing. For example, fixes #
Describe the pull request
Please describe the changes proposed in this pull request.
Contributors (in case of a commit with multiple authors)
Co-authors: