mirror of
https://github.com/primer/css.git
synced 2024-12-29 00:58:31 +03:00
Remove refs
This commit is contained in:
parent
8a4bc029fa
commit
9fffed1012
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user