Switch default buttonType to secondary
This commit is contained in:
parent
c51ca39fa7
commit
6148f8d1e9
4 changed files with 7 additions and 8 deletions
|
@ -83,6 +83,7 @@ const FormattingIcons = ({
|
||||||
iconRight={icon}
|
iconRight={icon}
|
||||||
onMouseDown={(e) => e.preventDefault()}
|
onMouseDown={(e) => e.preventDefault()}
|
||||||
onClick={action}
|
onClick={action}
|
||||||
|
buttonType="secondary"
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -24,9 +24,6 @@ const Document = ({
|
||||||
defaultTab = "edit",
|
defaultTab = "edit",
|
||||||
handleOnContentChange
|
handleOnContentChange
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
// const height = editable ? "500px" : '100%'
|
|
||||||
const height = "100%"
|
|
||||||
|
|
||||||
const onTitleChange = useCallback(
|
const onTitleChange = useCallback(
|
||||||
(event: ChangeEvent<HTMLInputElement>) =>
|
(event: ChangeEvent<HTMLInputElement>) =>
|
||||||
setTitle ? setTitle(event.target.value) : null,
|
setTitle ? setTitle(event.target.value) : null,
|
||||||
|
|
|
@ -27,7 +27,7 @@ const Button = forwardRef<HTMLButtonElement, Props>(
|
||||||
children,
|
children,
|
||||||
onClick,
|
onClick,
|
||||||
className,
|
className,
|
||||||
buttonType = "primary",
|
buttonType = "secondary",
|
||||||
disabled = false,
|
disabled = false,
|
||||||
iconRight,
|
iconRight,
|
||||||
iconLeft,
|
iconLeft,
|
||||||
|
|
|
@ -5,17 +5,18 @@ import Skeleton from "@components/skeleton"
|
||||||
export const ListItemSkeleton = () => (
|
export const ListItemSkeleton = () => (
|
||||||
<li>
|
<li>
|
||||||
<Card style={{ overflowY: "scroll" }}>
|
<Card style={{ overflowY: "scroll" }}>
|
||||||
<>
|
<div style={{display: 'flex', gap: 16}}>
|
||||||
<div className={styles.title}>
|
<div className={styles.title}>
|
||||||
{/* title */}
|
{/* title */}
|
||||||
<Skeleton width={80} height={32} />
|
<Skeleton width={80} height={32} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={styles.badges}>
|
<div className={styles.badges}>
|
||||||
<Skeleton width={30} height={32} />
|
<Skeleton width={60} height={32} />
|
||||||
|
<Skeleton width={60} height={32} />
|
||||||
|
<Skeleton width={60} height={32} />
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
<hr />
|
|
||||||
<Skeleton width={100} height={32} />
|
<Skeleton width={100} height={32} />
|
||||||
</Card>
|
</Card>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue