diff --git a/components/offices/contactPanel.tsx b/components/offices/contactPanel.tsx index 66205ef303..78acc8ad99 100644 --- a/components/offices/contactPanel.tsx +++ b/components/offices/contactPanel.tsx @@ -1,60 +1,75 @@ import Image from "next/image"; import Link from "next/link"; -const ContactPanel = ({ - phone, - streetAddress, - suburb, - addressLocality, - addressRegion, - postalCode, - addressCountry, - sideImg, - sidebarSecondaryPlace, -}) => ( - <> -
- Whether you're having trouble with your development process or you just - need us to write some awesome software, our team of experts is ready to - help. -
+import { tinaField } from "tinacms/dist/react"; -
- Give us a call on
-
- {phone}
-
+ Whether you're having trouble with your development process or you just + need us to write some awesome software, our team of experts is ready to + help. +
-
- Find us at
-
-
- {streetAddress}
- {suburb}, {addressRegion} {postalCode}
- {addressCountry}
-
-
+ Give us a call on
+
+
+ {office.phone}
+
+
+ Find us at
+
+
+
+ {office.streetAddress}
+
+
+
+ {office.suburb + ", "}
+
+
+ {office.addressRegion + " "}
+
+
+ {office.postalCode}
+
+
+
+ {office.addressCountry}
+
+
+
+ {"Learn more on "} + + SSW Chapel + + {!!office.sidebarSecondaryPlace && ( + <> + {" and "} + + {office.sidebarSecondaryPlace.name} + + > + )} +
-- {"Learn more on "} - - SSW Chapel - - {!!sidebarSecondaryPlace && ( - <> - {" and "} - - {sidebarSecondaryPlace.name} - - > + {office.sideImg && ( +