Skip to content

Commit

Permalink
feat(docs): update table page to use new layout (#624)
Browse files Browse the repository at this point in the history
  • Loading branch information
chanceaclark authored Oct 12, 2021
1 parent c6dd0b4 commit 94e033d
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 232 deletions.
18 changes: 12 additions & 6 deletions packages/docs/PropTables/TablePropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { NextLink, Prop, PropTable, PropTableWrapper } from '../components';
const tableProps: Prop[] = [
{
name: 'columns',
types: <NextLink href="#table-columns-prop-table">Columns[]</NextLink>,
types: <NextLink href={{ hash: 'table-columns-prop-table', query: { props: 'columns' } }}>Columns[]</NextLink>,
description: (
<>
See <NextLink href="#table-columns-prop-table">below</NextLink> for usage.
See <NextLink href={{ hash: 'table-columns-prop-table', query: { props: 'columns' } }}>Columns</NextLink> for
usage.
</>
),
required: true,
Expand Down Expand Up @@ -42,19 +43,24 @@ const tableProps: Prop[] = [
},
{
name: 'selectable',
types: <NextLink href="#table-selectable-prop-table">Selectable</NextLink>,
types: (
<NextLink href={{ hash: 'table-selectable-prop-table', query: { props: 'selectable' } }}>Selectable</NextLink>
),
description: (
<>
See <NextLink href="#table-selectable-prop-table">below</NextLink> for usage.
See{' '}
<NextLink href={{ hash: 'table-selectable-prop-table', query: { props: 'selectable' } }}>Selectable</NextLink>{' '}
for usage.
</>
),
},
{
name: 'sortable',
types: <NextLink href="#table-sortable-prop-table">Sortable</NextLink>,
types: <NextLink href={{ hash: 'table-sortable-prop-table', query: { props: 'sortable' } }}>Sortable</NextLink>,
description: (
<>
See <NextLink href="#table-sortable-prop-table">below</NextLink> for usage.
See <NextLink href={{ hash: 'table-sortable-prop-table', query: { props: 'sortable' } }}>Sortable</NextLink> for
usage.
</>
),
},
Expand Down
Loading

0 comments on commit 94e033d

Please sign in to comment.