mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
removing input from user signOff
This commit is contained in:
@@ -5,9 +5,3 @@
|
||||
.forgotPassword {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.footer,
|
||||
.subFooter {
|
||||
padding-top: var(--spacing-unit);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -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,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,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 (
|
||||
|
||||
Reference in New Issue
Block a user