Skip to content

Commit

Permalink
[minor changes] exports as named some protolib components
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecmart committed Jul 10, 2024
1 parent 3a378f9 commit fcedaf3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/protolib/src/components/MainButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type MainButtonProps = {
children: any
}

const MainButton = React.forwardRef(({ buttonProps = {}, buttonTextProps = {}, color = undefined, textColor = undefined, children }: MainButtonProps, ref: any) => (
export const MainButton = React.forwardRef(({ buttonProps = {}, buttonTextProps = {}, color = undefined, textColor = undefined, children }: MainButtonProps, ref: any) => (
<Button
ref={ref}
// layout shifts...
Expand Down
6 changes: 4 additions & 2 deletions packages/protolib/src/components/Video.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ type ImageProps = {
url?: string
}

export default React.forwardRef(({ width = "800", url = "/videos/visual-ui-dark.mp4", ...props }: ImageProps & StackProps, ref) => (
export const Video = React.forwardRef(({ width = "800", url = "/videos/visual-ui-dark.mp4", ...props }: ImageProps & StackProps, ref) => (
<Stack ref={ref} {...props}>
<video controls={false} muted={true} width={width} autoPlay={true} loop={true} >
<source src={url} type="video/mp4" />
</video>
</Stack>
))
))

export default Video

0 comments on commit fcedaf3

Please sign in to comment.