-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from liteflow-labs/fix/various-component-fixes
Fix/various component fixes
- Loading branch information
Showing
12 changed files
with
43 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
import { Link as ChakraLink, LinkProps } from '@chakra-ui/react' | ||
import NextLink from 'next/link' | ||
import React from 'react' | ||
import { forwardRef } from 'react' | ||
|
||
type IProps = LinkProps & { | ||
href: string | ||
} | ||
|
||
const Link = (props: IProps): JSX.Element => { | ||
const Link = forwardRef<any, IProps>((props, ref) => { | ||
const { children, href, isExternal, ...rest } = props | ||
if (isExternal) { | ||
return ( | ||
<ChakraLink href={href} isExternal {...rest}> | ||
<ChakraLink ref={ref} href={href} isExternal {...rest}> | ||
{children} | ||
</ChakraLink> | ||
) | ||
} | ||
return ( | ||
<NextLink passHref href={href}> | ||
<ChakraLink {...rest}>{children}</ChakraLink> | ||
<ChakraLink ref={ref} {...rest}> | ||
{children} | ||
</ChakraLink> | ||
</NextLink> | ||
) | ||
} | ||
}) | ||
|
||
export default Link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3616bae
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.
Successfully deployed to the following URLs:
storybook-templates – ./packages/templates
nft-storybook-template.vercel.app
storybook-templates-git-main-liteflow.vercel.app
storybook-templates-liteflow.vercel.app
3616bae
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.
Successfully deployed to the following URLs:
storybook-components – ./packages/components
liteflow-demo-storybook.vercel.app
storybook-components-git-main-liteflow.vercel.app
storybook-components-liteflow.vercel.app
liteflow-nft-storybook.vercel.app
3616bae
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.
Successfully deployed to the following URLs:
docs – ./docs
docs-git-main-liteflow.vercel.app
docs.liteflow.com
libraries-components-ruby.vercel.app
docs-liteflow.vercel.app