2677cd17d8
* new signin/signup * cleanup and password reset * new flow working * cleanup * add 'autoComplete' props * fix prop * try to call email/confirm before resetting password * Dont use password reset token for email confirmation. * add password reset * password manager improvements * update lbryinc * cleanup * slightly improve close button on sign up page * moar fixes * fix password autofil Co-authored-by: Mark Beamer Jr <markbeamerjr@gmail.com>
29 lines
611 B
JavaScript
29 lines
611 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import Button from 'component/button';
|
|
|
|
type Props = {
|
|
button: string,
|
|
label?: string,
|
|
doSignOut: () => void,
|
|
doClearEmailEntry: () => void,
|
|
doClearPasswordEntry: () => void,
|
|
};
|
|
|
|
function UserSignOutButton(props: Props) {
|
|
const { button = 'link', doSignOut, doClearEmailEntry, doClearPasswordEntry, label } = props;
|
|
|
|
return (
|
|
<Button
|
|
button={button}
|
|
label={label || __('Sign Out')}
|
|
onClick={() => {
|
|
doClearPasswordEntry();
|
|
doClearEmailEntry();
|
|
doSignOut();
|
|
}}
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default UserSignOutButton;
|