-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed meeting bug and added singleton.
- Loading branch information
1 parent
7ac3df9
commit 881e215
Showing
17 changed files
with
232 additions
and
51 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
import { Component } from 'react'; | ||
import { withAuthorization } from '../Session'; | ||
import { withFirebase } from '../Firebase'; | ||
import {compose} from 'recompose'; | ||
import { COLORS } from '../../constants/designConstants'; | ||
import styled from 'styled-components'; | ||
import {withRouter} from 'react-router-dom'; | ||
import * as ROUTES from '../../constants/routes'; | ||
class Error extends Component { | ||
constructor(props){ | ||
super(props); | ||
|
||
} | ||
|
||
render() { | ||
|
||
return ( | ||
|
||
<div style={{position:'relative', marginLeft: 'auto', marginRight: 'auto', marginTop:'auto', marginBottom: 'auto'}}> | ||
<h1>Error 101 - Hey, you little troublemaker...</h1> | ||
<p>Seems like you are already in that call. Press the button below to return home. | ||
</p> | ||
<StyledButton onClick = {() => this.props.history.push(ROUTES.HOME)}>Home</StyledButton> | ||
|
||
|
||
</div> | ||
|
||
) | ||
} | ||
} | ||
|
||
const StyledButton = styled.button` | ||
margin-left:auto; | ||
margin-right:auto; | ||
max-width: 250px; | ||
min-width: 150px; | ||
height: 40px; | ||
border: none; | ||
margin: 1rem 0; | ||
box-shadow: 0px 14px 9 px -15px rgba(0,0,0,0.25); | ||
border-radius: 32px; | ||
background-color: ${COLORS.primaryBlue}; | ||
color: white; | ||
font-weight: 600; | ||
cursor: pointer; | ||
align-self: center; | ||
&:hover { | ||
background-color: ${COLORS.primaryBlue}; | ||
} | ||
`; | ||
const condition = authUser => !!authUser; | ||
export default compose(withRouter, withAuthorization(condition))(Error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import Firebase from './firebase'; | ||
import SingletonFactory from './firebase'; | ||
import FirebaseContext, { withFirebase } from './context'; | ||
|
||
export default Firebase; | ||
export default SingletonFactory; | ||
export { FirebaseContext, withFirebase }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.