Commit 766949ca authored by Lyza Danger Gardner's avatar Lyza Danger Gardner Committed by Lyza Gardner

Update shared components in Excerpt

parent ee83db71
import { LinkButton } from '@hypothesis/frontend-shared';
import { LinkButton } from '@hypothesis/frontend-shared/lib/next';
import classnames from 'classnames';
import { useCallback, useLayoutEffect, useRef, useState } from 'preact/hooks';
......@@ -38,12 +38,13 @@ function InlineControls({ isCollapsed, setCollapsed, linkStyle = {} }) {
>
<div className="flex justify-end">
<LinkButton
classes="inline underline"
color="text"
onClick={() => setCollapsed(!isCollapsed)}
expanded={!isCollapsed}
title="Toggle visibility of full excerpt text"
style={linkStyle}
variant="dark"
underline="always"
inline
>
{isCollapsed ? 'More' : 'Less'}
</LinkButton>
......
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