Skip to content

Commit

Permalink
use relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Mar 1, 2022
1 parent 24791cc commit af91a20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/Footer/Contact.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { Icon } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';

const Contact = ({ children, contacts, header, address }) =>
children?.length ? (
Expand All @@ -11,7 +12,7 @@ const Contact = ({ children, contacts, header, address }) =>
{contacts?.map((contact, index) => (
<div className="contact" key={index}>
<Icon name={contact.icon} size="big"></Icon>
<a href={contact.link}>{contact.text}</a>
<Link to={contact.link}>{contact.text}</Link>
</div>
))}
{address && <p className="address">{address}</p>}
Expand Down

0 comments on commit af91a20

Please sign in to comment.