fix: Add indicator of starred status when viewing a document (#1785)

* fix: Add indicator of starred status when viewing a document
closes #461

* fix: Account for shared document
This commit is contained in:
Tom Moor
2021-01-10 23:13:58 -08:00
committed by GitHub
parent 4b85603f30
commit 7504d43452
5 changed files with 125 additions and 62 deletions

View File

@ -3,8 +3,8 @@ import * as React from "react";
import styled from "styled-components";
const Button = styled.button`
width: 24px;
height: 24px;
width: ${(props) => props.size}px;
height: ${(props) => props.size}px;
background: none;
border-radius: 4px;
line-height: 0;
@ -14,6 +14,6 @@ const Button = styled.button`
user-select: none;
`;
export default React.forwardRef<any, typeof Button>((props, ref) => (
<Button {...props} ref={ref} />
));
export default React.forwardRef<any, typeof Button>(
({ size = 24, ...props }, ref) => <Button size={size} {...props} ref={ref} />
);