Skip to content

Commit

Permalink
FW-5023 Move common html outside of conditional in widget edit
Browse files Browse the repository at this point in the history
  • Loading branch information
NolanVH committed Oct 20, 2023
1 parent e794fbc commit 972e5a9
Showing 1 changed file with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,38 +194,29 @@ function WidgetAreaEditPresentationSettingsPane({
{getSettings()}
</div>
{currentWidget?.type === WIDGET_CONTACT && (
<div>
{emailListAsString?.length > 0 ? (
<div className="mt-6">
<dt className="mb-1 text-sm font-bold text-primary-light">
Contact List
</dt>
<div className="col-span-12">
<div className="mt-2 text-xs text-fv-charcoal-light italic">
(Please contact support at hello@firstvoices.com to
update this list)
</div>
<div className="mt-6">
<dt className="mb-1 text-sm font-bold text-primary-light">
Contact List
</dt>
<div className="col-span-12">
<div className="mt-2 text-xs text-fv-charcoal-light italic">
(Please contact support at hello@firstvoices.com to update
this list)
</div>
{emailListAsString?.length > 0 ? (
<div>
<div>
Contact us emails will be sent to the following
addresses:
</div>
<div>{emailListAsString}</div>
</div>
</div>
) : (
<div className="mt-6">
<dt className="mb-1 text-sm font-bold text-primary-light">
Contact List
</dt>
<div className="mt-2 text-xs text-fv-charcoal-light italic">
(Please contact support at hello@firstvoices.com to update
this list)
</div>
<div className="col-span-12">
) : (
<div>
Could not find any emails to send contact messages to.
</div>
</div>
)}
)}
</div>
</div>
)}
</div>
Expand Down

0 comments on commit 972e5a9

Please sign in to comment.