Skip to content

Commit

Permalink
fixed position of fields
Browse files Browse the repository at this point in the history
  • Loading branch information
akanshaaa19 committed Dec 5, 2024
1 parent 3d703c9 commit 00ce5cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface ContactDescriptionProps {
lastMessage?: string;
statusMessage?: string;
groups?: boolean;
customStyles?: string;
}

export const ContactDescription = ({
Expand All @@ -27,6 +28,7 @@ export const ContactDescription = ({
fields,
settings,
groups = false,
customStyles,
}: ContactDescriptionProps) => {
const [showPlainPhone, setShowPlainPhone] = useState(false);
const { t } = useTranslation();
Expand Down Expand Up @@ -200,7 +202,7 @@ export const ContactDescription = ({
);

return (
<div className={styles.DescriptionContainer} data-testid="contactDescription">
<div className={`${styles.DescriptionContainer} ${customStyles}`} data-testid="contactDescription">
{numberBlock}
{collectionBlock}
{settingsBlock}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
height: 100%;
display: flex;
background-color: #f8faf5;
align-items: center;
}

.RightContainer {
Expand Down Expand Up @@ -134,3 +133,10 @@
.Table {
display: flex;
}

.BackGround {
background-color: #f8faf5 !important;
width: 100%;
height: 100%;

}
9 changes: 8 additions & 1 deletion src/containers/WaGroups/GroupDetails.tsx/GroupDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,14 @@ export const GroupDetails = () => {
/>
);
} else {
contentBody = <ContactDescription fields={groupData?.fields} collections={groupData?.groups} groups />;
contentBody = (

Check warning on line 187 in src/containers/WaGroups/GroupDetails.tsx/GroupDetails.tsx

View check run for this annotation

Codecov / codecov/patch

src/containers/WaGroups/GroupDetails.tsx/GroupDetails.tsx#L187

Added line #L187 was not covered by tests
<ContactDescription
customStyles={styles.BackGround}
fields={groupData?.fields}
collections={groupData?.groups}
groups
/>
);
}

const drawer = (
Expand Down

0 comments on commit 00ce5cc

Please sign in to comment.