1
1
mirror of https://github.com/primer/css.git synced 2024-12-29 00:58:31 +03:00

Remove refs

This commit is contained in:
Jon Rohan 2021-04-12 13:58:14 -07:00
parent 8a4bc029fa
commit 9fffed1012
No known key found for this signature in database
GPG Key ID: B0BBE304A9A0AECB

View File

@ -139,9 +139,6 @@ function VariablesDetails({variablesByFile, ...props}) {
<Swatch value={computed} mr={2} />
<Mono nowrap>{computed}</Mono>
</td>
<td>
<RefList refs={refs} />
</td>
</tr>
))}
</tbody>
@ -172,16 +169,6 @@ Swatch.defaultProps = {
size: '1em'
}
function RefList({refs}) {
const last = refs.length - 1
return refs.map((ref, i) => [
<Link href={`#${ref}`} key={ref}>
<Mono nowrap>{ref}</Mono>
</Link>,
i < last ? ', ' : ''
])
}
function DeprecationFlag({variable, ...rest}) {
const deprecations = useDeprecations()