-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added carousel to UI and 2 new specifiers to screenfulBlock #56
Conversation
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.
See comments inline
packages/ui/primitives/carousel.tsx
Outdated
|
||
type CarouselProps = { | ||
opts?: CarouselOptions | ||
plugins?: CarouselPlugin |
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 var plural and type singular
Also, please write out "options"
packages/ui/primitives/carousel.tsx
Outdated
|
||
const CarouselContext = React.createContext<CarouselContextProps | null>(null) | ||
|
||
function useCarousel() { |
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 should be typed
packages/ui/primitives/carousel.tsx
Outdated
if (event.key === "ArrowLeft") { | ||
event.preventDefault() | ||
scrollPrev() | ||
} else if (event.key === "ArrowRight") { |
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.
Else on new line please
No description provided.