UNPKG

strapi-stripe-e

Version:

Online payments and subscriptions made simple, secure and fast. This free plugin enables you to accept online payments and create subscriptions using Credit Card, Apple pay, Google pay, SEPA Direct Debit, ACH Direct Debit on your Strapi app via Stripe.

31 lines (27 loc) 807 B
/** * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * */ import React from 'react'; import { Switch, Route } from 'react-router-dom'; import { NotFound } from '@strapi/helper-plugin'; import pluginId from '../../pluginId'; import HomePage from '../HomePage'; import PaymentReport from '../../components/Report'; const App = () => { return ( <div> <Switch> <Route path={`/plugins/${pluginId}`} component={HomePage} exact /> <Route path={`/plugins/${pluginId}/report/:productId/:productName`} component={PaymentReport} /> <Route component={NotFound} /> </Switch> </div> ); }; export default App;