Additional fixes for firebase login. Capture basic local state.
This commit is contained in:
@@ -5,6 +5,7 @@ import { Alert } from "antd";
|
||||
import Header from "./header.component";
|
||||
|
||||
import Spin from "../loading-spinner/loading-spinner.component";
|
||||
// import Skeleton from "../loading-skeleton/loading-skeleton.component";
|
||||
|
||||
import {
|
||||
GET_SELECTED_NAV_ITEM,
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import React from 'react'
|
||||
import './loading-skeleton.styles.scss'
|
||||
|
||||
import { Skeleton } from "antd";
|
||||
|
||||
export default function LoadingSkeleton() {
|
||||
return (
|
||||
<Skeleton className="loading-skeleton" active/>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
.loading-skeleton {
|
||||
text-align: center;
|
||||
}
|
||||
@@ -3,5 +3,5 @@ import { Spin } from "antd";
|
||||
import "./loading-spinner.styles.scss";
|
||||
|
||||
export default function LoadingSpinner() {
|
||||
return <Spin className="spinner" size="large" delay="500" />;
|
||||
return <Spin className="loading-spinner" size="large" delay="500" />;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
.spinner {
|
||||
.loading-spinner {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import React from "react";
|
||||
import { auth } from "../../../firebase/firebase.utils";
|
||||
import { auth } from "../../firebase/firebase.utils";
|
||||
import { Form, Icon, Input, Button, Alert } from "antd";
|
||||
|
||||
class SignIn extends React.Component {
|
||||
class SignInForm extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = {
|
||||
@@ -74,4 +74,4 @@ class SignIn extends React.Component {
|
||||
);
|
||||
}
|
||||
}
|
||||
export default Form.create({ name: "sign_in" })(SignIn);
|
||||
export default Form.create({ name: "sign_in" })(SignInForm);
|
||||
Reference in New Issue
Block a user