Skip to content

Commit

Permalink
edited phoneDisplay to use twenty-icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucifer4255 committed Dec 14, 2024
1 parent 8dd7e41 commit 37b8bf4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import styled from '@emotion/styled';
import { useMemo } from 'react';
import React, { useMemo } from 'react';
import { RoundedLink, THEME_COMMON } from 'twenty-ui';

import { FieldPhonesValue } from '@/object-record/record-field/types/FieldMetadata';
import { ExpandableList } from '@/ui/layout/expandable-list/components/ExpandableList';

import { SnackBarVariant } from '@/ui/feedback/snack-bar-manager/components/SnackBar';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { IconClipboard } from '@tabler/icons-react';
// import { IconClipboard } from '@tabler/icons-react';
import { parsePhoneNumber } from 'libphonenumber-js';
import { useIcons } from 'twenty-ui';
import { isDefined } from '~/utils/isDefined';
import { logError } from '~/utils/logError';
// import { IconClipboardCopy } from '@tabler/icons-react';



Expand All @@ -37,6 +39,8 @@ const StyledContainer = styled.div`

export const PhonesDisplay = ({ value, isFocused }: PhonesDisplayProps) => {
const { enqueueSnackBar } = useSnackBar();
const { getIcon } = useIcons();
const IconClipboard = getIcon('IconClipboardCopy');
const handlePhoneClick = async (event: React.MouseEvent, phoneNumber: string | undefined) => {
event.preventDefault(); // Prevent default link behavior

Expand Down

0 comments on commit 37b8bf4

Please sign in to comment.