mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-10 21:25:24 +03:00
Use separate buttons for export control
This commit is contained in:
parent
7075ea53aa
commit
43510ebdd5
@ -1,5 +1,4 @@
|
||||
import { Button } from "../ui/button";
|
||||
import { LuX } from "react-icons/lu";
|
||||
|
||||
type SaveExportOverlayProps = {
|
||||
className: string;
|
||||
@ -16,20 +15,15 @@ export default function SaveExportOverlay({
|
||||
return (
|
||||
<div className={className}>
|
||||
<div
|
||||
className={`flex justify-center px-2 gap-2 items-center pointer-events-auto bg-selected rounded-lg *:text-white *:hover:bg-transparent ${
|
||||
className={`flex justify-center px-2 gap-2 items-center pointer-events-auto rounded-lg *:text-white ${
|
||||
show ? "animate-in slide-in-from-top duration-500" : "invisible"
|
||||
} text-center mt-5 mx-auto`}
|
||||
>
|
||||
<Button className="p-0" variant="ghost" size="sm" onClick={onSave}>
|
||||
<Button variant="select" size="sm" onClick={onSave}>
|
||||
Save Export
|
||||
</Button>
|
||||
<Button
|
||||
className="cursor-pointer"
|
||||
size="xs"
|
||||
variant="ghost"
|
||||
onClick={onCancel}
|
||||
>
|
||||
<LuX />
|
||||
<Button size="sm" variant="secondary" onClick={onCancel}>
|
||||
Cancel
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user