gsoft-inc / sg-orbit

The design system for ShareGate web apps.
https://orbit.sharegate.design
Apache License 2.0
101 stars 37 forks source link

🐛 TileLink with React Router example shouldn't use the "as" property #1140

Closed patricklafrance closed 1 year ago

patricklafrance commented 1 year ago

Describe the bug

(https://orbit.sharegate.design/?path=/docs/tile--tile#react-router)

image

Expected results

Something like:

const RouterTileLink = as(TileLink, RouterLink);

<RouterTileLink to="/buy">
    <Heading>Buy a ticket</Heading>
    <Content>Purchase a ticket for any of our space travel adventure.</Content>
</RouterTileLink>