import React from 'react';
import { Switch, Route } from 'react-router-dom';

import CmsContentGroupsAdminTable from './CmsContentGroupsAdminTable';
import EditCmsContentGroup from './EditCmsContentGroup';
import NewCmsContentGroup from './NewCmsContentGroup';
import ViewCmsContentGroup from './ViewCmsContentGroup';

function CmsContentGroupsAdmin() {
  return (
    <Switch>
      <Route path="/cms_content_groups/:id/edit" component={EditCmsContentGroup} />
      <Route path="/cms_content_groups/:id" component={ViewCmsContentGroup} />
      <Route path="/cms_content_groups/new" component={NewCmsContentGroup} />
      <Route path="/cms_content_groups" component={CmsContentGroupsAdminTable} />
    </Switch>
  );
}

export default CmsContentGroupsAdmin;

import React from 'react';
import { Switch, Route } from 'react-router-dom';

import CmsContentGroupsAdminTable from './CmsContentGroupsAdminTable';
import EditCmsContentGroup from './EditCmsContentGroup';
import NewCmsContentGroup from './NewCmsContentGroup';
import ViewCmsContentGroup from './ViewCmsContentGroup';

function CmsContentGroupsAdmin() {
  return (
    <Switch>
      <Route path="/cms_content_groups/:id/edit" component={EditCmsContentGroup} />
      <Route path="/cms_content_groups/new" component={NewCmsContentGroup} />
      <Route path="/cms_content_groups/:id" component={ViewCmsContentGroup} />
      <Route path="/cms_content_groups" component={CmsContentGroupsAdminTable} />
    </Switch>
  );
}

export default CmsContentGroupsAdmin;

Fix rendering the new content group page
Fix rendering the new content group page
