removing input from user signOff

This commit is contained in:
Belén Curcio
2018-08-22 09:48:06 -03:00
parent e9db68269b
commit 7b5a87207b
6 changed files with 6 additions and 21 deletions
@@ -5,9 +5,3 @@
.forgotPassword {
text-align: right;
}
.footer,
.subFooter {
padding-top: var(--spacing-unit);
width: 100%;
}
+2 -6
View File
@@ -105,7 +105,7 @@ const SignIn: StatelessComponent<SignInForm> = props => {
)}
</Field>
<div className={styles.footer}>
<div>
<Button
variant="filled"
color="primary"
@@ -115,11 +115,7 @@ const SignIn: StatelessComponent<SignInForm> = props => {
>
Sign in and join the conversation
</Button>
<Flex
itemGutter="half"
justifyContent="center"
className={styles.subFooter}
>
<Flex itemGutter="half" justifyContent="center">
<Typography>Don't have an account?</Typography>
<Button
variant="underlined"
@@ -2,13 +2,11 @@ import { commitLocalUpdate, Environment } from "relay-runtime";
import { TalkContext } from "talk-framework/lib/bootstrap";
import { createMutationContainer } from "talk-framework/lib/relay";
import { LOCAL_ID } from "talk-framework/lib/relay/withLocalStateContainer";
import { SignOffInput } from "talk-framework/rest";
export type SignOffMutation = (input: SignOffInput) => Promise<void>;
export type SignOffMutation = () => Promise<void>;
export async function commit(
environment: Environment,
input: SignOffInput,
{ localStorage }: TalkContext
) {
return commitLocalUpdate(environment, store => {
+1 -1
View File
@@ -1,3 +1,3 @@
export { default as signIn, SignInInput } from "./signIn";
export { default as signUp, SignUpInput } from "./signUp";
export { default as signOff, SignOffInput } from "./signOff";
export { default as signOff } from "./signOff";
+1 -4
View File
@@ -1,12 +1,9 @@
import { RestClient } from "../lib/rest";
// tslint:disable-next-line:no-empty-interface
export interface SignOffInput {}
// tslint:disable-next-line:no-empty-interface
export interface SignOffResponse {}
export default function signOff(rest: RestClient, input: SignOffInput) {
export default function signOff(rest: RestClient) {
return rest.fetch<SignOffResponse>("/tenant/auth/local", {
method: "DELETE",
});
@@ -12,7 +12,7 @@ class UserBoxAuthenticatedContainer extends Component<
UserBoxAuthenticatedProps
> {
private onSignOff = () => {
this.props.signOff({});
this.props.signOff();
};
public render() {
return (