Unverified Commit fb729823 authored by Adith Widya Pradipta's avatar Adith Widya Pradipta Committed by GitHub

remove next/link (#10625)

parent 40217b75
import Link from 'next/link'
import { Link as ChakraLink, Button } from '@chakra-ui/core' import { Link as ChakraLink, Button } from '@chakra-ui/core'
import { Container } from './Container' import { Container } from './Container'
...@@ -12,17 +11,12 @@ export const CTA = () => ( ...@@ -12,17 +11,12 @@ export const CTA = () => (
maxWidth="48rem" maxWidth="48rem"
py={2} py={2}
> >
<Link isExternal href="https://chakra-ui.com">
<ChakraLink isExternal href="https://chakra-ui.com" flexGrow={1} mx={2}> <ChakraLink isExternal href="https://chakra-ui.com" flexGrow={1} mx={2}>
<Button width="100%" variant="outline" variantColor="green"> <Button width="100%" variant="outline" variantColor="green">
chakra-ui chakra-ui
</Button> </Button>
</ChakraLink> </ChakraLink>
</Link>
<Link
isExternal
href="https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
>
<ChakraLink <ChakraLink
isExternal isExternal
href="https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui" href="https://github.com/zeit/next.js/blob/canary/examples/with-chakra-ui"
...@@ -33,6 +27,5 @@ export const CTA = () => ( ...@@ -33,6 +27,5 @@ export const CTA = () => (
View Repo View Repo
</Button> </Button>
</ChakraLink> </ChakraLink>
</Link>
</Container> </Container>
) )
import React from 'react' import React from 'react'
import Link from 'next/link'
import { withTheme } from 'emotion-theming' import { withTheme } from 'emotion-theming'
import { import {
Link as ChakraLink, Link as ChakraLink,
...@@ -29,7 +28,6 @@ const Index = () => ( ...@@ -29,7 +28,6 @@ const Index = () => (
<List spacing={3} my={0}> <List spacing={3} my={0}>
<ListItem> <ListItem>
<ListIcon icon="check-circle" color="green.500" /> <ListIcon icon="check-circle" color="green.500" />
<Link href="https://chakra-ui.com">
<ChakraLink <ChakraLink
isExternal isExternal
href="https://chakra-ui.com" href="https://chakra-ui.com"
...@@ -38,20 +36,12 @@ const Index = () => ( ...@@ -38,20 +36,12 @@ const Index = () => (
> >
Chakra UI <Icon name="external-link" mx="2px" /> Chakra UI <Icon name="external-link" mx="2px" />
</ChakraLink> </ChakraLink>
</Link>
</ListItem> </ListItem>
<ListItem> <ListItem>
<ListIcon icon="check-circle" color="green.500" /> <ListIcon icon="check-circle" color="green.500" />
<Link href="https://nextjs.org"> <ChakraLink isExternal href="https://nextjs.org" flexGrow={1} mr={2}>
<ChakraLink
isExternal
href="https://nextjs.org"
flexGrow={1}
mr={2}
>
Next.js <Icon name="external-link" mx="2px" /> Next.js <Icon name="external-link" mx="2px" />
</ChakraLink> </ChakraLink>
</Link>
</ListItem> </ListItem>
</List> </List>
</Main> </Main>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment