Skip to content

Commit

Permalink
clients/custom-fields: polish custom fields page
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwidlund committed Nov 12, 2024
1 parent 0b3b973 commit 03e9298
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'

import CopyToClipboardButton from '@/components/CopyToClipboardButton/CopyToClipboardButton'
import CreateCustomFieldModalContent from '@/components/CustomFields/CreateCustomFieldModalContent'
import CustomFieldTypeLabel from '@/components/CustomFields/CustomFieldTypeLabel'
import UpdateCustomFieldModalContent from '@/components/CustomFields/UpdateCustomFieldModalContent'
Expand Down Expand Up @@ -116,8 +115,7 @@ const ClientPage: React.FC<ClientPageProps> = ({
const value = getValue() as string
return (
<div className="flex flex-row items-center gap-1">
<div className="font-mono">{value}</div>
<CopyToClipboardButton text={value} />
<span>{value}</span>
</div>
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ClientPage from './ClientPage'

export async function generateMetadata(): Promise<Metadata> {
return {
title: 'Custom fields', // " | Polar is added by the template"
title: 'Custom Fields', // " | Polar is added by the template"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const CustomFieldTypeLabel = ({ type }: { type: CustomFieldType }) => {
const label = getLabel(type)

return (
<div className="flex flex-row items-center gap-1">
<div className="flex flex-row items-center gap-2">
<CustomFieldTypeIcon type={type} />
<div>{label}</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion clients/apps/web/src/components/Dashboard/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ const organizationRoutesList = (org: Organization): Route[] => [
link: `/dashboard/${org.slug}/settings/webhooks`,
},
{
title: 'Custom fields',
title: 'Custom Fields',
link: `/dashboard/${org.slug}/settings/custom-fields`,
},
],
Expand Down

0 comments on commit 03e9298

Please sign in to comment.