Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <Route exact path='/'
  2.                            render={() =>
  3.                                <MainPage
  4.                                    selectBid={this.selectBid}
  5.                                    popupIndex={popupIndex}
  6.                                    previousIndex={previousIndex}
  7.                                    openModal={this.openModal}
  8.                                    slides={slides}
  9.                                />
  10.                            }
  11.                     />
  12.                     <Route
  13.                         path='/profile'
  14.                         render={() => (
  15.                             userName ? (
  16.                                 <Profile
  17.                                     avatar={avatar}
  18.                                     userName={userName}/>
  19.                             ) : (
  20.                                 <Redirect to='/'/>
  21.                             )
  22.                         )}
  23.                     />
  24.                     <Route path='/faq' component={FAQ}/>
  25.                     <Route path='/sample' component={Sample}/>
  26.                     <Route component={NotFound}/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement