refacto(*): rename hostname to custom domain (#10100)
This commit is contained in:
@ -6,7 +6,7 @@ import { ExpandableList } from '@/ui/layout/expandable-list/components/Expandabl
|
||||
import { isDefined } from 'twenty-shared';
|
||||
import { checkUrlType } from '~/utils/checkUrlType';
|
||||
import { getAbsoluteUrl } from '~/utils/url/getAbsoluteUrl';
|
||||
import { getUrlHostName } from '~/utils/url/getUrlHostName';
|
||||
import { getUrlHostname } from '~/utils/url/getUrlHostname';
|
||||
|
||||
type LinksDisplayProps = {
|
||||
value?: FieldLinksValue;
|
||||
@ -29,7 +29,7 @@ export const LinksDisplay = ({ value }: LinksDisplayProps) => {
|
||||
const absoluteUrl = getAbsoluteUrl(url);
|
||||
return {
|
||||
url: absoluteUrl,
|
||||
label: label || getUrlHostName(absoluteUrl),
|
||||
label: label || getUrlHostname(absoluteUrl),
|
||||
type: checkUrlType(absoluteUrl),
|
||||
};
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user