Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.99 KB

TODOS.md

File metadata and controls

52 lines (44 loc) · 1.99 KB

TODOS

README Improvements:

Design:

  • Apply design from some (a lot of) commits ago 😉
  • Implement a great design 🏁

Code:

  • Add WithFirebase integration, use code must look like this:
export default class HeaderButtons extends Component {
  render() {
    return (
      <WithFirebaseProvider firebaseConfig={firebaseConfig}>
        <WithRouter>
          {router => (
            <WithFirebase>
              {({ auth: { authUser, simpleAuth } }) => {
                const btnText = authUser ? "Sign Out" : "Sign In";
                const btnOnClick = authUser
                  ? () => simpleAuth.signOut()
                  : () => router.pushRoute('signIn');

                return <HeaderButton onClick={btnOnClick}>{btnText}</HeaderButton>;
              }}
            </WithFirebase>
          )}
        </WithRouter>
      </WithFirebaseProvider>
    );
  }
}