Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions src/layouts/form-template-item-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { Switch, Route, withRouter } from "react-router-dom";
import T from "i18n-react/dist/i18n-react";
import { Breadcrumb } from "react-breadcrumbs";
import Restrict from "../routes/restrict";
import EditFormTemplateItemPage from "../pages/sponsors_inventory/edit-form-template-item-page";
import FormTemplateItemListPage from "../pages/sponsors_inventory/form-template-item-list-page";
import NoMatchPage from "../pages/no-match-page";

Expand All @@ -29,28 +28,6 @@ const FormTemplateItemLayout = ({ match }) => (
}}
/>
<Switch>
<Route
strict
exact
path={`${match.url}/new`}
render={(props) => (
<EditFormTemplateItemPage
{...props}
formTemplateId={match.params.form_template_id}
/>
)}
/>
<Route
strict
exact
path={`${match.url}/:form_template_item_id(\\d+)`}
render={(props) => (
<EditFormTemplateItemPage
{...props}
formTemplateId={match.params.form_template_id}
/>
)}
/>
<Route
strict
exact
Expand Down
13 changes: 0 additions & 13 deletions src/layouts/form-template-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import T from "i18n-react/dist/i18n-react";
import { Breadcrumb } from "react-breadcrumbs";
import Restrict from "../routes/restrict";
import FormTemplateListPage from "../pages/sponsors_inventory/form-template-list-page";
import EditFormTemplatePage from "../pages/sponsors_inventory/edit-form-template-page";
import FormTemplateItemLayout from "./form-template-item-layout";
import NoMatchPage from "../pages/no-match-page";

Expand All @@ -30,18 +29,6 @@ const FormTemplateLayout = ({ match }) => (
}}
/>
<Switch>
<Route
strict
exact
path={`${match.url}/new`}
component={EditFormTemplatePage}
/>
<Route
strict
exact
path={`${match.url}/:form_template_id(\\d+)`}
component={EditFormTemplatePage}
/>
<Route
strict
path={`${match.url}/:form_template_id(\\d+)/items`}
Expand Down
14 changes: 0 additions & 14 deletions src/layouts/inventory-item-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
* */

import React from "react";
import { Switch, Route, withRouter } from "react-router-dom";
import T from "i18n-react/dist/i18n-react";
import { Breadcrumb } from "react-breadcrumbs";
import Restrict from "../routes/restrict";
import InventoryListPage from "../pages/sponsors_inventory/inventory-list-page";
import EditInventoryItemPage from "../pages/sponsors_inventory/edit-inventory-item-page";
import NoMatchPage from "../pages/no-match-page";

const InventoryItemLayout = ({ match }) => (
Expand All @@ -29,18 +27,6 @@ const InventoryItemLayout = ({ match }) => (
}}
/>
<Switch>
<Route
strict
exact
path={`${match.url}/new`}
component={EditInventoryItemPage}
/>
<Route
strict
exact
path={`${match.url}/:inventory_item_id(\\d+)`}
component={EditInventoryItemPage}
/>
<Route path={`${match.url}`} component={InventoryListPage} />
<Route component={NoMatchPage} />
</Switch>
Expand Down
116 changes: 0 additions & 116 deletions src/pages/sponsors_inventory/edit-form-template-item-page.js

This file was deleted.

85 changes: 0 additions & 85 deletions src/pages/sponsors_inventory/edit-form-template-page.js

This file was deleted.

85 changes: 0 additions & 85 deletions src/pages/sponsors_inventory/edit-inventory-item-page.js

This file was deleted.