mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-09-20 03:32:47 +02:00
23 lines
507 B
JavaScript
23 lines
507 B
JavaScript
import React from 'react';
|
|
import { Helmet } from 'react-helmet';
|
|
import { configShape } from '../util/shapes';
|
|
import { generateManifestUrl } from '../util/manifestUtils';
|
|
|
|
function IndexPageMeta(_, { config }) {
|
|
const link = [
|
|
{
|
|
rel: 'manifest',
|
|
href: generateManifestUrl(config, window.location, {
|
|
ignorePathname: true,
|
|
}),
|
|
},
|
|
];
|
|
|
|
return <Helmet link={link} />;
|
|
}
|
|
|
|
IndexPageMeta.contextTypes = {
|
|
config: configShape.isRequired,
|
|
};
|
|
|
|
export default IndexPageMeta;
|