Update ApplyActions.tsx
This commit is contained in:
parent
f5dda43c3a
commit
ceb6270cf5
1 changed files with 17 additions and 17 deletions
|
|
@ -54,33 +54,33 @@ export default function ApplyActions(props: ApplyActionsProps) {
|
|||
<div className="flex items-center rounded bg-zinc-700 pl-2 pr-1">
|
||||
<span className="inline-flex w-min items-center gap-2 text-center text-xs text-gray-400">
|
||||
Applying
|
||||
<div>
|
||||
<Spinner />
|
||||
</div>
|
||||
<Spinner />
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
case "done":
|
||||
return (
|
||||
<div className="flex items-center sm:gap-1">
|
||||
<div className="flex items-center rounded bg-zinc-700 px-1.5 sm:gap-1">
|
||||
<span className="max-xs:hidden text-center text-xs text-gray-400">
|
||||
{`${props.applyState?.numDiffs === 1 ? "1 diff" : `${props.applyState?.numDiffs} diffs`}`}
|
||||
<span className="max-md:hidden">{` remaining`}</span>
|
||||
</span>
|
||||
|
||||
<ToolbarButtonWithTooltip
|
||||
onClick={onClickReject}
|
||||
tooltipContent={`Reject all (${getMetaKeyLabel()}⇧⌫)`}
|
||||
>
|
||||
<XMarkIcon className="h-4 w-4 text-red-600 hover:brightness-125" />
|
||||
</ToolbarButtonWithTooltip>
|
||||
<div className="flex">
|
||||
<ToolbarButtonWithTooltip
|
||||
onClick={onClickReject}
|
||||
tooltipContent={`Reject all (${getMetaKeyLabel()}⇧⌫)`}
|
||||
>
|
||||
<XMarkIcon className="h-3.5 w-3.5 text-red-600 hover:brightness-125" />
|
||||
</ToolbarButtonWithTooltip>
|
||||
|
||||
<ToolbarButtonWithTooltip
|
||||
onClick={props.onClickAccept}
|
||||
tooltipContent={`Accept all (${getMetaKeyLabel()}⇧⏎)`}
|
||||
>
|
||||
<CheckIcon className="h-4 w-4 text-green-600 hover:brightness-125" />
|
||||
</ToolbarButtonWithTooltip>
|
||||
<ToolbarButtonWithTooltip
|
||||
onClick={props.onClickAccept}
|
||||
tooltipContent={`Accept all (${getMetaKeyLabel()}⇧⏎)`}
|
||||
>
|
||||
<CheckIcon className="h-3.5 w-3.5 text-green-600 hover:brightness-125" />
|
||||
</ToolbarButtonWithTooltip>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
case "closed":
|
||||
|
|
@ -89,7 +89,7 @@ export default function ApplyActions(props: ApplyActionsProps) {
|
|||
return (
|
||||
<span className="flex items-center rounded bg-zinc-700 text-slate-400 max-sm:px-0.5 sm:pl-2">
|
||||
<span className="max-sm:hidden">Applied</span>
|
||||
<CheckIcon className="h-4 w-4 hover:brightness-125 sm:px-1" />
|
||||
<CheckIcon className="h-3.5 w-3.5 hover:brightness-125 sm:px-1" />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue