From d0e72f0415a9c8e643b1d51b8128ee13012e0fa5 Mon Sep 17 00:00:00 2001 From: David Colon Date: Thu, 9 Dec 2021 23:00:32 -0500 Subject: [PATCH] moved error text to constant --- .../ArchaeologistSelect/ArchaeologistData.tsx | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/components/SarcophagusCreate/ArchaeologistSelect/ArchaeologistData.tsx b/src/components/SarcophagusCreate/ArchaeologistSelect/ArchaeologistData.tsx index 7ff1444..eb0e6c0 100644 --- a/src/components/SarcophagusCreate/ArchaeologistSelect/ArchaeologistData.tsx +++ b/src/components/SarcophagusCreate/ArchaeologistSelect/ArchaeologistData.tsx @@ -18,13 +18,30 @@ interface ArchaeologistDataProps { isArchaeologistMaxResValid: boolean; } +const MAX_RESURRECTION_PAST_TEXT = "Max Resurrection time has past"; + const Property = ({ label }: { label: string }) => {label}; const Value = ({ value, selected }: { value: string; selected: boolean }) => ( - {value} + + {" "} + {value} + ); -const ArchaeologistData = ({ archaeologist, file, isSelected, open, isArchaeologistMaxResValid }: ArchaeologistDataProps) => { +const ArchaeologistData = ({ + archaeologist, + file, + isSelected, + open, + isArchaeologistMaxResValid, +}: ArchaeologistDataProps) => { if (!open) return null; return (
@@ -77,7 +94,11 @@ const ArchaeologistData = ({ archaeologist, file, isSelected, open, isArchaeolog