Skip to content

Commit 3d7ce6c

Browse files
committed
fix regression with about component
1 parent a34fb33 commit 3d7ce6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui-react-starter/src/components/About.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import os from "os";
55

66
import "./About.css";
77

8-
export const About = () => {
8+
export const About = (props) => {
99
return (
1010
<form method="dialog" className="aboutDialog">
1111
<sp-heading>React Starter Plugin</sp-heading>
@@ -17,7 +17,7 @@ export const About = () => {
1717
</sp-body>
1818
<sp-body class="well">
1919
<sp-icon name="ui:InfoSmall" size="s"></sp-icon>
20-
We've also included the `WC` component and a couple of controlelrs. You
20+
We've also included the `WC` component and a couple of controllers. You
2121
do not need to use these in your own projects, but you are welcome to do so.
2222
</sp-body>
2323
<sp-detail>VERSIONS</sp-detail>
@@ -27,8 +27,8 @@ export const About = () => {
2727
<div><sp-detail>UNIFIED EXTENSIBILITY PLATFORM:</sp-detail><sp-body>{versions.uxp}</sp-body></div>
2828
</div>
2929
<sp-button-group>
30-
<sp-button tabindex={0} variant="secondary" quiet="quiet" onClick={() => this.props.dialog.close("reasonCanceled")}>Cancel</sp-button>
31-
<sp-button tabindex={0} autofocus="autofocus" variant="primary" onClick={() => this.props.dialog.close("ok")}>Ok</sp-button>
30+
<sp-button tabindex={0} variant="secondary" quiet="quiet" onClick={() => props.dialog.close("reasonCanceled")}>Cancel</sp-button>
31+
<sp-button tabindex={0} autofocus="autofocus" variant="primary" onClick={() => props.dialog.close("ok")}>OK</sp-button>
3232
</sp-button-group>
3333
</form>
3434
);

0 commit comments

Comments
 (0)