Guest User

Untitled

a guest
Apr 18th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. Accounts.onEmailVerificationLink(function(token, done) {
  2. Accounts.verifyEmail(token);
  3. });
  4.  
  5. Accounts.urls.verifyEmail = function(){
  6. return Meteor.absoluteUrl("restaurantsignin");
  7. };
  8.  
  9. Meteor.startup(() => {
  10. render(
  11. <Router history={browserHistory}>
  12. <Route path="/" component={App}>
  13. <IndexRoute component={Home} />
  14. <Route path="/about" component={About} />
  15. <Route path="/restaurantsignin" component={RestaurantSignInContainer} />
  16. <Route path="/restaurantsignup" component={RestaurantSignUpContainer} />
  17. <Route path="/customersignup" component={CustomerSignUpContainer} />
  18. <Route path="/restaurantresetemail" component={RestaurantResetEmailContainer} />
  19. <Route path="/restaurantresetpassword" component={RestaurantResetPasswordContainer} />
  20.  
  21. <Route path="/restaurant/:restaurantName" component={MenuPage} />
  22. </Route>
  23. </Router>, document.getElementById('app')
  24. );
  25.  
  26. });
  27.  
  28. import React from 'react';
  29. import Radium from 'radium';
  30. import ReactDOM from 'react-dom';
  31. import { Alert, Button } from 'react-bootstrap';
  32.  
  33. export default class RestaurantSignIn extends React.Component {
  34.  
  35. handleAlertVerifiedDismiss() {
  36. document.getElementById('alert_verified_box').style.display = 'none';
  37. }
  38.  
  39. render() {
  40. var styles = {
  41. .
  42. .
  43. .
  44. return (
  45. <div style={styles.signInContainer}>
  46. .
  47. .
  48. .
  49. and so on
Advertisement
Add Comment
Please, Sign In to add comment