mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-06 18:00:35 +02:00

Also: - Move generic Toggle to componentfolder root - Remove dead styles - Refactor some componets
18 lines
446 B
JavaScript
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;
|