Add the shape lock button for mobile (#1054)

This commit is contained in:
Sanghyeon Lee 2020-03-24 19:51:49 +09:00 committed by GitHub
parent e38045ccad
commit 104e48b6cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 15 deletions

View file

@ -12,7 +12,6 @@ type LockIconProps = {
checked: boolean;
onChange?(): void;
size?: LockIconSize;
isButton?: boolean;
};
const DEFAULT_SIZE: LockIconSize = "m";
@ -46,9 +45,7 @@ export function LockIcon(props: LockIconProps) {
return (
<label
className={`ToolIcon ToolIcon__lock ${
props.isButton ? "ToolIcon_type_button" : "ToolIcon_type_floating"
} ${sizeCn}`}
className={`ToolIcon ToolIcon__lock ToolIcon_type_floating ${sizeCn}`}
title={`${props.title} ${getShortcutKey("Q")}`}
>
<input