Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Oct 30, 2023
1 parent 703fd06 commit ced638b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
7 changes: 1 addition & 6 deletions faucet-client/src/components/frontpage/ZupassLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ import {
ZKEdDSAEventTicketPCDPackage
} from "@pcd/zk-eddsa-event-ticket-pcd";
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
import { IZupassLogin } from './ZupassLoginInterface';

export interface IZupassLoginProps {
faucetContext: IFaucetContext;
faucetConfig: IFaucetConfig;
forwardRef: React.RefObject<IZupassLogin>;
}

export interface IZupassLoginState {
Expand All @@ -36,9 +34,6 @@ export interface IZupassAuthInfo {

export enum PCDRequestType {
Get = "Get",
GetWithoutProving = "GetWithoutProving",
Add = "Add",
ProveAndAdd = "ProveAndAdd"
}

export interface PCDRequest {
Expand Down Expand Up @@ -69,7 +64,6 @@ export class ZupassLogin extends React.PureComponent<IZupassLoginProps, IZupassL

constructor(props: IZupassLoginProps, state: IZupassLoginState) {
super(props);
(this.props.forwardRef as any).current = this;

this.messageEvtListener = (evt: MessageEvent) => this.processWindowMessage(evt);

Expand Down Expand Up @@ -369,6 +363,7 @@ export default (props) => {
return (
<ZupassLogin
{...props}
ref={props.forwardRef}
/>
);
};
Loading

0 comments on commit ced638b

Please sign in to comment.