From 385606ee05a8ceb9073169639eb1a311f81cac10 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 11 May 2023 19:28:47 -0600 Subject: AƱade informaciĆ³n a la vista de usuario MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/address.tsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/address.tsx (limited to 'src/components/address.tsx') diff --git a/src/components/address.tsx b/src/components/address.tsx new file mode 100644 index 0000000..1701fd1 --- /dev/null +++ b/src/components/address.tsx @@ -0,0 +1,28 @@ +import countryList from "react-select-country-list"; + +export default function Address({ address }) { + return( + + + {address.attributes.street} + + + {address.attributes.number} + + + {address.attributes.zip_code} + + + {address.attributes.city} + + + {countryList().getLabel(address.attributes.country)} + + + + + + ); +} \ No newline at end of file -- cgit v1.2.3