Sha256: 04c269ca0f9cb7873a88f7cf02e9d509a0581af4e0fe23e081fe704087ed8c77
Contents?: true
Size: 741 Bytes
Versions: 70
Compression:
Stored size: 741 Bytes
Contents
import React from 'react'; import { Route } from 'react-router-dom'; import { number, shape } from 'prop-types'; import ContentViewVersions from './ContentViewVersions'; import ContentViewVersionDetails from './VersionDetails/ContentViewVersionDetails'; const ContentViewVersionsRoutes = ({ cvId, details }) => ( <> <Route exact path="/versions"> <ContentViewVersions cvId={cvId} details={details} /> </Route> <Route path="/versions/:versionId([0-9]+)"> <ContentViewVersionDetails cvId={cvId} details={details} /> </Route> </> ); ContentViewVersionsRoutes.propTypes = { cvId: number.isRequired, details: shape({ permissions: shape({}), }).isRequired, }; export default ContentViewVersionsRoutes;
Version data entries
70 entries across 70 versions & 1 rubygems