Fix linting, update translations, remove vite-plugin-chunk-split

This commit is contained in:
Amruth Pillai
2024-05-20 16:59:38 +02:00
parent 0124db049b
commit 73b29f78ab
57 changed files with 3584 additions and 2633 deletions

View File

@ -3,12 +3,12 @@ import { createId } from "@paralleldrive/cuid2";
import { DotsSixVertical, Envelope, Plus, X } from "@phosphor-icons/react";
import { CustomField as ICustomField } from "@reactive-resume/schema";
import {
Button,
Input,
Popover,
PopoverContent,
PopoverTrigger,
Tooltip,
Button,
Input,
} from "@reactive-resume/ui";
import { cn } from "@reactive-resume/utils";
import { AnimatePresence, Reorder, useDragControls } from "framer-motion";
@ -53,7 +53,7 @@ export const CustomField = ({ field, onChange, onRemove }: CustomFieldProps) =>
<Tooltip content={t`Icon`}>
<PopoverTrigger asChild>
<Button size="icon" variant="ghost">
{field.icon ? <i className={`ph ph-${field.icon}`}></i> : <Envelope />}
{field.icon ? <i className={cn(`ph ph-${field.icon}`)} /> : <Envelope />}
</Button>
</PopoverTrigger>
</Tooltip>
@ -61,7 +61,9 @@ export const CustomField = ({ field, onChange, onRemove }: CustomFieldProps) =>
<Input
value={field.icon}
placeholder={t`Enter Phosphor Icon`}
onChange={(event) => onChange({ ...field, icon: event.target.value })}
onChange={(event) => {
onChange({ ...field, icon: event.target.value });
}}
/>
</PopoverContent>
</Popover>