mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
💄 Make Save button more obvious
This commit is contained in:
parent
0e2704506f
commit
0b6883c316
1 changed files with 10 additions and 20 deletions
|
@ -7,7 +7,7 @@ import {
|
||||||
TooltipPortal,
|
TooltipPortal,
|
||||||
TooltipTrigger,
|
TooltipTrigger,
|
||||||
} from "@rallly/ui/tooltip";
|
} from "@rallly/ui/tooltip";
|
||||||
import { CheckIcon, UndoIcon } from "lucide-react";
|
import { UndoIcon } from "lucide-react";
|
||||||
import { useTranslation } from "next-i18next";
|
import { useTranslation } from "next-i18next";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { Controller } from "react-hook-form";
|
import { Controller } from "react-hook-form";
|
||||||
|
@ -84,25 +84,15 @@ const ParticipantRowForm = ({
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</TooltipPortal>
|
</TooltipPortal>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip>
|
<Button
|
||||||
<TooltipTrigger asChild>
|
variant="primary"
|
||||||
<Button
|
loading={form.formState.isSubmitting}
|
||||||
loading={form.formState.isSubmitting}
|
size="sm"
|
||||||
size="sm"
|
form="voting-form"
|
||||||
form="voting-form"
|
type="submit"
|
||||||
type="submit"
|
>
|
||||||
>
|
<Trans i18nKey="save" />
|
||||||
<Icon>
|
</Button>
|
||||||
<CheckIcon />
|
|
||||||
</Icon>
|
|
||||||
</Button>
|
|
||||||
</TooltipTrigger>
|
|
||||||
<TooltipPortal>
|
|
||||||
<TooltipContent>
|
|
||||||
<Trans i18nKey="save" />
|
|
||||||
</TooltipContent>
|
|
||||||
</TooltipPortal>
|
|
||||||
</Tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue