mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 15:27:49 +01:00
add husky checks
This commit is contained in:
@@ -23,7 +23,7 @@ export class AuthScreenComponent extends React.PureComponent<IAuthScreenProps> {
|
||||
}
|
||||
public render() {
|
||||
const { location } = this.props.history;
|
||||
const { from } = this.props.location.state || { from: "/" };
|
||||
const { from } = (this.props.location.state as any) || { from: "/" };
|
||||
const { loggedIn } = this.props;
|
||||
return loggedIn ? (
|
||||
<Redirect to={from} />
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IAppState } from "~redux/reducers";
|
||||
|
||||
interface ILoginComponentProps extends RouteComponentProps {
|
||||
inProgress: boolean;
|
||||
error: string;
|
||||
error: string | null;
|
||||
spinner: boolean;
|
||||
login: (username: string, password: string) => void;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ import { IAppState } from "~redux/reducers";
|
||||
|
||||
interface ISignupComponentProps extends RouteComponentProps {
|
||||
inProgress: boolean;
|
||||
error: string;
|
||||
error: string | null;
|
||||
spinner: boolean;
|
||||
signup: (username: string, password: string, email: string) => void;
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@
|
||||
}
|
||||
|
||||
.bp3-dark {
|
||||
#overview {}
|
||||
}
|
||||
#overview {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,10 +27,10 @@ const localSettingsPersistConfig = {
|
||||
};
|
||||
|
||||
export const rootReducer = combineReducers({
|
||||
auth: persistReducer<IAuthState>(authPersistConfig, authReducer),
|
||||
auth: persistReducer<IAuthState>(authPersistConfig, authReducer as any),
|
||||
user: userReducer,
|
||||
localSettings: persistReducer(
|
||||
localSettingsPersistConfig,
|
||||
localSettingsReducer,
|
||||
localSettingsReducer as any,
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user