UNPKG

opds-web-client

Version:
23 lines (22 loc) 737 B
import * as React from "react"; import "../stylesheets/basic_auth_form.scss"; import { BasicAuthCallback } from "../interfaces"; export interface BasicAuthFormProps { hide: () => void; saveCredentials: (credentials: string) => void; callback?: BasicAuthCallback; title?: string; loginLabel?: string; passwordLabel?: string; error?: string; } export default class BasicAuthForm extends React.Component<BasicAuthFormProps, any> { constructor(props: any); render(): JSX.Element; componentWillReceiveProps(nextProps: any): void; loginLabel(): string; passwordLabel(): string; validate(): boolean; submit(event: any): void; generateCredentials(login: any, password: any): string; }