Adjusts some types

This commit is contained in:
Paul Fasola
2018-02-18 16:32:51 +01:00
parent 10cb4217ca
commit cee689fc2c
2 changed files with 6 additions and 8 deletions

View File

@@ -5,19 +5,18 @@
// TypeScript Version: 2.6
interface TwitterLoginProp {
tag?: string;
tag?: React.ReactType;
text?: string;
loginUrl: string;
requestTokenUrl: string;
onFailure: (msg: string) => void;
onSuccess: (response: string) => void;
disabled?: boolean;
style?: string;
className?: string;
style?: React.CSSProperties;
dialogWidth?: number;
dialogHeight?: number;
showIcon?: boolean;
credentials?: string;
credentials?: "omit" | "same-origin" | "include";
}
declare var TwitterLogin: React.StatelessComponent<TwitterLoginProp>;

View File

@@ -12,12 +12,11 @@ const ReactTwitterAuth: React.StatelessComponent = () => {
requestTokenUrl="http://server.url/api/v1/auth/twitter/reverse"
dialogWidth={ 1200 }
dialogHeight={ 800 }
style={ "font-size: 14px;" }
style={{display: "initial"}}
disabled={ false }
text={ "test" }
tag={ "test" }
className={ "test" }
credentials={ "same-origin" }
tag="button"
credentials="same-origin"
showIcon={true}/>
);
};