digitransit-ui/app/component/itinerary/PastLink.js
Vesa Meskanen 3f2fa2ae0b feat: move all itinerary page related components to a dedicated folder
Also:
- Move generic Toggle to componentfolder root
- Remove dead styles
- Refactor some componets
2024-04-22 08:49:15 +03:00

18 lines
446 B
JavaScript

import React from 'react';
import { matchShape } from 'found';
import { FormattedMessage } from 'react-intl';
import cx from 'classnames';
const PastLink = ({ match }) => (
<div>
<a className={cx('no-decoration', 'medium')} href={match.location.pathname}>
<FormattedMessage id="itinerary-in-the-past-link" defaultMessage="" />
</a>
</div>
);
PastLink.propTypes = {
match: matchShape.isRequired,
};
export default PastLink;