Skip to content

Commit

Permalink
fix footer
Browse files Browse the repository at this point in the history
  • Loading branch information
KuzykY committed Oct 8, 2024
1 parent 406fb8e commit 2435aa6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions FrontEnd/src/components/Footer/Top/FooterNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,6 @@ function FooterNavigation() {
fetchContacts();
}, []);

if (error) {
return <p style={{ fontFamily: 'inherit', color: 'white'}}>{error}</p>;
}

if (!contacts) {
return null;
}

return (
<div className={css['navigation-content']}>
<div className={css['navigation-content-section']}>
Expand All @@ -100,11 +92,19 @@ function FooterNavigation() {
</div>
<div className={css['navigation-content-section']}>
<p className={css['navigation-content-section-service__text']}>Контакти</p>
<p className={css['navigation-content-section-service__text']}>{contacts.email}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.phone}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.university}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.address}</p>
</div>
{error ? (
<p className={css['navigation-content-section-service__text']} style={{ color: 'white' }}>
{error}
</p>
) : contacts && (
<>
<p className={css['navigation-content-section-service__text']}>{contacts.email}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.phone}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.university}</p>
<p className={css['navigation-content-section-service__text']}>{contacts.address}</p>
</>
)}
</div>
</div>
);
}
Expand Down

0 comments on commit 2435aa6

Please sign in to comment.