mirror of
https://github.com/documenso/documenso.git
synced 2026-08-25 07:42:28 +10:00
fix: lint project (#2693)
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
import { useMemo, useState } from 'react';
|
||||
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { type TemplateDirectLink, TemplateType } from '@prisma/client';
|
||||
import { EditIcon, FileIcon, LinkIcon, MoreHorizontalIcon, Trash2Icon } from 'lucide-react';
|
||||
|
||||
import { useCopyToClipboard } from '@documenso/lib/client-only/hooks/use-copy-to-clipboard';
|
||||
import { formatDirectTemplatePath } from '@documenso/lib/utils/templates';
|
||||
import { trpc } from '@documenso/trpc/react';
|
||||
@@ -19,6 +11,12 @@ import {
|
||||
} from '@documenso/ui/primitives/dropdown-menu';
|
||||
import { Skeleton } from '@documenso/ui/primitives/skeleton';
|
||||
import { useToast } from '@documenso/ui/primitives/use-toast';
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { useLingui } from '@lingui/react';
|
||||
import { Trans } from '@lingui/react/macro';
|
||||
import { type TemplateDirectLink, TemplateType } from '@prisma/client';
|
||||
import { EditIcon, FileIcon, LinkIcon, MoreHorizontalIcon, Trash2Icon } from 'lucide-react';
|
||||
import { useMemo, useState } from 'react';
|
||||
|
||||
import { ManagePublicTemplateDialog } from '~/components/dialogs/public-profile-template-manage-dialog';
|
||||
|
||||
@@ -82,10 +80,7 @@ export const SettingsPublicProfileTemplatesTable = () => {
|
||||
Array(3)
|
||||
.fill(0)
|
||||
.map((_, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex items-center justify-between gap-x-6 bg-background p-4"
|
||||
>
|
||||
<div key={index} className="flex items-center justify-between gap-x-6 bg-background p-4">
|
||||
<div className="flex gap-x-2">
|
||||
<FileIcon className="h-8 w-8 text-muted-foreground/40" strokeWidth={1.5} />
|
||||
|
||||
@@ -100,7 +95,7 @@ export const SettingsPublicProfileTemplatesTable = () => {
|
||||
))}
|
||||
|
||||
{isLoadingError && (
|
||||
<div className="flex h-32 flex-col items-center justify-center text-sm text-muted-foreground">
|
||||
<div className="flex h-32 flex-col items-center justify-center text-muted-foreground text-sm">
|
||||
<Trans>Unable to load your public profile templates at this time</Trans>
|
||||
<button
|
||||
onClick={(e) => {
|
||||
@@ -114,7 +109,7 @@ export const SettingsPublicProfileTemplatesTable = () => {
|
||||
)}
|
||||
|
||||
{!isLoading && (
|
||||
<div className="flex h-32 flex-col items-center justify-center text-sm text-muted-foreground">
|
||||
<div className="flex h-32 flex-col items-center justify-center text-muted-foreground text-sm">
|
||||
<Trans>No public profile templates found</Trans>
|
||||
<ManagePublicTemplateDialog
|
||||
directTemplates={privateDirectTemplates}
|
||||
@@ -131,19 +126,13 @@ export const SettingsPublicProfileTemplatesTable = () => {
|
||||
|
||||
{/* Public templates list. */}
|
||||
{publicDirectTemplates.map((template) => (
|
||||
<div
|
||||
key={template.id}
|
||||
className="flex items-center justify-between gap-x-6 bg-background p-4"
|
||||
>
|
||||
<div key={template.id} className="flex items-center justify-between gap-x-6 bg-background p-4">
|
||||
<div className="flex gap-x-2">
|
||||
<FileIcon
|
||||
className="h-8 w-8 flex-shrink-0 text-muted-foreground/40"
|
||||
strokeWidth={1.5}
|
||||
/>
|
||||
<FileIcon className="h-8 w-8 flex-shrink-0 text-muted-foreground/40" strokeWidth={1.5} />
|
||||
|
||||
<div>
|
||||
<p className="break-all text-sm">{template.publicTitle}</p>
|
||||
<p className="break-all text-xs text-neutral-400">{template.publicDescription}</p>
|
||||
<p className="break-all text-neutral-400 text-xs">{template.publicDescription}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user