Skip to content

Commit

Permalink
Fix more type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RichDom2185 committed Feb 17, 2024
1 parent fae2115 commit 3b196b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/tabs/UnityAcademy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,11 @@ class Unity3DTab extends React.Component<Props> {
<br/>
{getInstance()
.getUserAgreementStatus() === 'new_user_agreement' && <div><b>The User Agreement has updated.</b><br/></div>}
<Checkbox label = "I agree to the User Agreement" ref = {(e) => {
<Checkbox label = "I agree to the User Agreement" inputRef = {(e) => {
if (e !== null) {
if (e.input !== null) {
e.input.checked = (getInstance()
.getUserAgreementStatus() === 'agreed');
this.userAgreementCheckboxChecked = e.input.checked;
}
e.checked = (getInstance()
.getUserAgreementStatus() === 'agreed');
this.userAgreementCheckboxChecked = e.checked;
}
}} onChange = {(event : React.ChangeEvent<HTMLInputElement>) => {
this.userAgreementCheckboxChecked = event.target.checked;
Expand Down
1 change: 1 addition & 0 deletions src/tabs/common/ButtonComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const defaultOptions = {
type Props = {
onClick?: React.MouseEventHandler<HTMLElement>,
disabled?: boolean,
children?: React.ReactNode,
};

const ButtonComponent = (props: Props) => {
Expand Down

0 comments on commit 3b196b9

Please sign in to comment.