Skip to content

Commit

Permalink
Fix(crm): It was not possible ta save a company or a contact due to l…
Browse files Browse the repository at this point in the history
…inkedin URL
  • Loading branch information
arnault-dev committed Jul 26, 2024
1 parent 71def36 commit eaf7516
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions examples/crm/src/contacts/ContactAside.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
import * as React from 'react';
import EmailIcon from '@mui/icons-material/Email';
import LinkedInIcon from '@mui/icons-material/LinkedIn';
import PhoneIcon from '@mui/icons-material/Phone';
import { Box, Divider, Stack, Typography } from '@mui/material';
import {
TextField,
EmailField,
DateField,
ReferenceManyField,
EditButton,
ShowButton,
EmailField,
FunctionField,
ReferenceField,
ReferenceManyField,
SelectField,
FunctionField,
useRecordContext,
ShowButton,
TextField,
UrlField,
useRecordContext,
} from 'react-admin';
import { Box, Typography, Divider, Stack } from '@mui/material';
import EmailIcon from '@mui/icons-material/Email';
import LinkedInIcon from '@mui/icons-material/LinkedIn';
import PhoneIcon from '@mui/icons-material/Phone';
import { TagsListEdit } from './TagsListEdit';
import { AddTask } from '../tasks/AddTask';
import { TasksIterator } from '../tasks/TasksIterator';
import { TagsListEdit } from './TagsListEdit';

import { Contact, Sale } from '../types';
import { useConfigurationContext } from '../root/ConfigurationContext';
import { Contact, Sale } from '../types';

export const ContactAside = ({ link = 'edit' }: { link?: 'edit' | 'show' }) => {
const { contactGender } = useConfigurationContext();
Expand Down Expand Up @@ -63,6 +62,7 @@ export const ContactAside = ({ link = 'edit' }: { link?: 'edit' | 'show' }) => {
content="linkedin_url"
target="_blank"
rel="noopener"
label="LinkedIn"
/>
</Stack>
)}
Expand Down

0 comments on commit eaf7516

Please sign in to comment.