Skip to content

Commit

Permalink
Add: organizations column in the providers table
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Sep 16, 2024
1 parent 7d7f5d6 commit 8f78a4c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/blocks/Providers/Providers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export const Providers = ({
specializations: providerData.specializations || [],
consultationPrice: providerData.consultation_price || 0,
status: providerData.status,
organizations: providerData.organizations || "N/A",
};
formattedData.push(formattedProvider);
}
Expand Down Expand Up @@ -265,6 +266,9 @@ export const Providers = ({
{
label: t("specializations"),
},
{
label: t("organizations"),
},
{
label: t("actions"),
isCentered: true,
Expand Down Expand Up @@ -299,6 +303,7 @@ export const Providers = ({
</div>,

<p>{provider.specializations.map((x) => t(x)).join(", ")}</p>,
<p>{provider.organizations}</p>,

<div
onClick={() => {
Expand Down

0 comments on commit 8f78a4c

Please sign in to comment.