mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Rename match to props since component is a React component
This commit is contained in:
parent
e4d5051ffa
commit
9b7fff6d5a
1 changed files with 29 additions and 29 deletions
|
|
@ -31,34 +31,34 @@ const routesConfiguration = [
|
|||
pattern: '/',
|
||||
exactly: true,
|
||||
name: 'LandingPage',
|
||||
component: match => <LandingPage {...match} />,
|
||||
component: props => <LandingPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/s',
|
||||
exactly: true,
|
||||
name: 'SearchPage',
|
||||
component: match => <SearchPage {...match} />,
|
||||
component: props => <SearchPage {...props} />,
|
||||
loadData: SearchPage ? SearchPage.loadData : null,
|
||||
routes: [
|
||||
{
|
||||
pattern: '/s/filters',
|
||||
exactly: true,
|
||||
name: 'SearchFiltersPage',
|
||||
component: match => <SearchPage {...match} tab="filters" />,
|
||||
component: props => <SearchPage {...props} tab="filters" />,
|
||||
loadData: SearchPage ? SearchPage.loadData : null,
|
||||
},
|
||||
{
|
||||
pattern: '/s/listings',
|
||||
exactly: true,
|
||||
name: 'SearchListingsPage',
|
||||
component: match => <SearchPage {...match} tab="listings" />,
|
||||
component: props => <SearchPage {...props} tab="listings" />,
|
||||
loadData: SearchPage ? SearchPage.loadData : null,
|
||||
},
|
||||
{
|
||||
pattern: '/s/map',
|
||||
exactly: true,
|
||||
name: 'SearchMapPage',
|
||||
component: match => <SearchPage {...match} tab="map" />,
|
||||
component: props => <SearchPage {...props} tab="map" />,
|
||||
loadData: SearchPage ? SearchPage.loadData : null,
|
||||
},
|
||||
],
|
||||
|
|
@ -73,7 +73,7 @@ const routesConfiguration = [
|
|||
pattern: '/l/:slug/:id',
|
||||
exactly: true,
|
||||
name: 'ListingPage',
|
||||
component: match => <ListingPage {...match} />,
|
||||
component: props => <ListingPage {...props} />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -87,14 +87,14 @@ const routesConfiguration = [
|
|||
pattern: '/u/:displayName',
|
||||
exactly: true,
|
||||
name: 'ProfilePage',
|
||||
component: match => <ProfilePage {...match} />,
|
||||
component: props => <ProfilePage {...props} />,
|
||||
routes: [
|
||||
{
|
||||
pattern: '/u/:displayName/edit',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'EditProfilePage',
|
||||
component: match => <EditProfilePage {...match} />,
|
||||
component: props => <EditProfilePage {...props} />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -110,7 +110,7 @@ const routesConfiguration = [
|
|||
pattern: '/checkout/:listingId',
|
||||
exactly: true,
|
||||
name: 'CheckoutPage',
|
||||
component: match => <CheckoutPage {...match} />,
|
||||
component: props => <CheckoutPage {...props} />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -118,45 +118,45 @@ const routesConfiguration = [
|
|||
pattern: '/login',
|
||||
exactly: true,
|
||||
name: 'LogInPage',
|
||||
component: match => <AuthenticationPage {...match} tab="login" />,
|
||||
component: props => <AuthenticationPage {...props} tab="login" />,
|
||||
},
|
||||
{
|
||||
pattern: '/signup',
|
||||
exactly: true,
|
||||
name: 'SignUpPage',
|
||||
component: match => <AuthenticationPage {...match} tab="signup" />,
|
||||
component: props => <AuthenticationPage {...props} tab="signup" />,
|
||||
},
|
||||
{
|
||||
pattern: '/password',
|
||||
exactly: true,
|
||||
name: 'PasswordPage',
|
||||
component: match => <PasswordForgottenPage {...match} />,
|
||||
component: props => <PasswordForgottenPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/password/forgotten',
|
||||
exactly: true,
|
||||
name: 'PasswordForgottenPage',
|
||||
component: match => <PasswordForgottenPage {...match} />,
|
||||
component: props => <PasswordForgottenPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/password/change',
|
||||
exactly: true,
|
||||
name: 'PasswordChangePage',
|
||||
component: match => <PasswordChangePage {...match} />,
|
||||
component: props => <PasswordChangePage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/orders',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'OrdersPage',
|
||||
component: match => <InboxPage {...match} filter="orders" />,
|
||||
component: props => <InboxPage {...props} filter="orders" />,
|
||||
},
|
||||
{
|
||||
pattern: '/sales',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'SalesPage',
|
||||
component: match => <InboxPage {...match} filter="sales" />,
|
||||
component: props => <InboxPage {...props} filter="sales" />,
|
||||
},
|
||||
{
|
||||
pattern: '/order/:id',
|
||||
|
|
@ -170,14 +170,14 @@ const routesConfiguration = [
|
|||
auth: true,
|
||||
exactly: true,
|
||||
name: 'OrderDetailsPage',
|
||||
component: match => <OrderPage {...match} tab="details" />,
|
||||
component: props => <OrderPage {...props} tab="details" />,
|
||||
},
|
||||
{
|
||||
pattern: '/order/:id/discussion',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'OrderDiscussionPage',
|
||||
component: match => <OrderPage {...match} tab="discussion" />,
|
||||
component: props => <OrderPage {...props} tab="discussion" />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -186,21 +186,21 @@ const routesConfiguration = [
|
|||
auth: true,
|
||||
exactly: true,
|
||||
name: 'SalePage',
|
||||
component: match => <SalesConversationPage {...match} tab="discussion" />,
|
||||
component: props => <SalesConversationPage {...props} tab="discussion" />,
|
||||
routes: [
|
||||
{
|
||||
pattern: '/sale/:id/details',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'SaleDetailsPage',
|
||||
component: match => <SalesConversationPage {...match} tab="discussion" />,
|
||||
component: props => <SalesConversationPage {...props} tab="discussion" />,
|
||||
},
|
||||
{
|
||||
pattern: '/sale/:id/discussion',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'SaleDiscussionPage',
|
||||
component: match => <SalesConversationPage {...match} tab="discussion" />,
|
||||
component: props => <SalesConversationPage {...props} tab="discussion" />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -209,7 +209,7 @@ const routesConfiguration = [
|
|||
auth: true,
|
||||
exactly: true,
|
||||
name: 'ManageListingsPage',
|
||||
component: match => <ManageListingsPage {...match} />,
|
||||
component: props => <ManageListingsPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/account',
|
||||
|
|
@ -223,21 +223,21 @@ const routesConfiguration = [
|
|||
auth: true,
|
||||
exactly: true,
|
||||
name: 'ContactDetailsPage',
|
||||
component: match => <ContactDetailsPage {...match} />,
|
||||
component: props => <ContactDetailsPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/account/payout-preferences',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'PayoutPreferencesPage',
|
||||
component: match => <PayoutPreferencesPage {...match} />,
|
||||
component: props => <PayoutPreferencesPage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/account/security',
|
||||
auth: true,
|
||||
exactly: true,
|
||||
name: 'SecurityPage',
|
||||
component: match => <SecurityPage {...match} />,
|
||||
component: props => <SecurityPage {...props} />,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
|
@ -245,25 +245,25 @@ const routesConfiguration = [
|
|||
pattern: '/styleguide',
|
||||
exactly: true,
|
||||
name: 'Styleguide',
|
||||
component: match => <StyleguidePage {...match} />,
|
||||
component: props => <StyleguidePage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/styleguide/:component',
|
||||
exactly: true,
|
||||
name: 'StyleguideComponent',
|
||||
component: match => <StyleguidePage {...match} />,
|
||||
component: props => <StyleguidePage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/styleguide/:component/:example',
|
||||
exactly: true,
|
||||
name: 'StyleguideComponentExample',
|
||||
component: match => <StyleguidePage {...match} />,
|
||||
component: props => <StyleguidePage {...props} />,
|
||||
},
|
||||
{
|
||||
pattern: '/styleguide/:component/:example/:type',
|
||||
exactly: true,
|
||||
name: 'StyleguideComponentExampleRaw',
|
||||
component: match => <StyleguidePage {...match} />,
|
||||
component: props => <StyleguidePage {...props} />,
|
||||
},
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue