SHARE
TWEET

UserSignInindex.js import fail

lexparsimonet Oct 12th, 2017 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import React, { PropTypes } from 'react';
  3. import UsersNavBar from '../components/UsersNavBar';
  4. import FormContainer from './FormContainer.js';
  5. import Paper from 'material-ui/Paper';
  6.  
  7. import style from './style.css'; <---------- `import` statement that IDE/ESLint indicates is 'unused' despite corresponding stylesheet
  8.  
  9. const usersnavbarContainer = {
  10.     display: 'flex',
  11.     paddingTop: '0rem',
  12.     minHeight: '30rem',
  13. }
  14. const usersnavbarForm = {
  15.     display: 'flex',
  16.     align: 'center',
  17.     justify: 'center',
  18.     width: 'auto',
  19. }
  20. const usersnavbarFormContainer = {
  21.     display: 'flex',
  22.     alignContent: 'center',
  23.     justifyContent: 'center',
  24.     height: '18rem'
  25. }
  26. const usersnavbarTitle = {
  27.     alignContent: 'center',
  28.     textAlign: 'center',
  29.     display: 'flex',
  30. }
  31. const usersignInPaper = {
  32.     margin: '20',
  33.     width: '40rem',
  34.     height: '18rem',
  35.     alignContent: 'center !important',
  36.     justifyContent: 'flex-start',
  37.     padding: '0',
  38.     display: 'flex',
  39. }
  40.  
  41. const Screen = (props) => (
  42. <div>
  43.     <Paper style={usersignInPaper} zDepth={1} className="usersigninPaper">
  44.       <div style={usersnavbarContainer} className="usersnavbarContainer">
  45.             <UsersNavBar label="Log In" screen="user/signin" style={usersnavbarTitle}/>
  46.                 <div style={usersnavbarFormContainer} className="usersnavbarFormContainer">
  47.                 <FormContainer redirectTo={props.location.query.redirect} style={usersnavbarForm}/>
  48.                 </div>
  49.       </div>
  50.     </Paper>
  51. </div>
  52. );
  53.  
  54. Screen.propTypes = {
  55.   location: PropTypes.object,
  56. };
  57.  
  58. export default Screen;
RAW Paste Data
Top