Skip to content

Commit 16dc0d1

Browse files
committed
Fix type errors
1 parent 341ef7a commit 16dc0d1

File tree

1 file changed

+2
-3
lines changed
  • packages/app/src/app/components/SubscribeForm/CheckoutForm

1 file changed

+2
-3
lines changed

packages/app/src/app/components/SubscribeForm/CheckoutForm/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import { CardContainer, StripeInput, ErrorText, Label } from './elements';
1111

1212
interface Props {
1313
name: string;
14-
stripe: ReactStripeElements.StripeProps;
1514
buttonName: string;
1615
loadingText: string;
1716
isLoading: boolean;
18-
error?: Error;
1917
subscribe: (params: { token: string; coupon: string }) => void;
18+
stripe?: ReactStripeElements.StripeProps;
19+
error?: Error | string;
2020
hasCoupon?: boolean;
2121
}
2222

@@ -121,7 +121,6 @@ class CheckoutFormComponent extends React.PureComponent<Props, State> {
121121
<StripeInput
122122
value={this.state.name}
123123
onChange={this.setName}
124-
error={!!errors.name}
125124
placeholder="Please enter your name"
126125
/>
127126
</div>

0 commit comments

Comments
 (0)