UNPKG

matrix-react-sdk

Version:
33 lines (32 loc) 1.01 kB
import React from "react"; import { ServicePolicyPair } from "../../../Terms"; interface ITermsDialogProps { /** * Array of [Service, policies] pairs, where policies is the response from the * /terms endpoint for that service */ policiesAndServicePairs: ServicePolicyPair[]; /** * urls that the user has already agreed to */ agreedUrls: string[]; /** * Called with: * * success {bool} True if the user accepted any douments, false if cancelled * * agreedUrls {string[]} List of agreed URLs */ onFinished: (success: boolean, agreedUrls?: string[]) => void; } interface IState { agreedUrls: any; } export default class TermsDialog extends React.PureComponent<ITermsDialogProps, IState> { constructor(props: ITermsDialogProps); private onCancelClick; private onNextClick; private nameForServiceType; private summaryForServiceType; private onTermsCheckboxChange; render(): React.ReactNode; } export {};