Skip to content

Commit

Permalink
custom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchoeler committed Jul 5, 2024
1 parent 9bef9d4 commit eb6c0c5
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions apps/meteor/client/views/omnichannel/components/CustomField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import { useEndpoint, useTranslation } from '@rocket.chat/ui-contexts';
import { useQuery } from '@tanstack/react-query';
import React from 'react';

import InfoPanel from '../../../components/InfoPanel';
import { FormSkeleton } from '../directory/components/FormSkeleton';
import Field from './Field';
import Info from './Info';
import Label from './Label';

type CustomFieldProps = {
id: string;
Expand All @@ -33,10 +31,10 @@ const CustomField = ({ id, value }: CustomFieldProps) => {
}

return (
<Field>
<Label>{label}</Label>
<Info>{value}</Info>
</Field>
<InfoPanel.Field>
<InfoPanel.Label>{label}</InfoPanel.Label>
<InfoPanel.Text>{value}</InfoPanel.Text>
</InfoPanel.Field>
);
};

Expand Down

0 comments on commit eb6c0c5

Please sign in to comment.