Skip to content

Commit

Permalink
fix: remove lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnwesson committed Sep 25, 2023
1 parent 71cd817 commit 915a486
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions example-plugin-app/src/PluginOne.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React, {useState, useEffect} from 'react';
import React from 'react';
import { Plugin } from '@edx/frontend-platform/plugins';

function Greeting({subject}) {
return <div>Hello {subject.toUpperCase()}</div>
/* istanbul ignore next */
function Greeting({ subject }) {

Check failure on line 5 in example-plugin-app/src/PluginOne.jsx

View workflow job for this annotation

GitHub Actions / tests

'subject' is missing in props validation
return <div>Hello {subject.toUpperCase()}</div>;

Check failure on line 6 in example-plugin-app/src/PluginOne.jsx

View workflow job for this annotation

GitHub Actions / tests

'subject.toUpperCase' is missing in props validation
}

function errorFallback(error) {
Expand All @@ -11,7 +12,7 @@ function errorFallback(error) {
<p className="h3 text-muted">
Oops! An error occurred. Please refresh the screen to try again.
</p>
<br/>
<br />
{error.message}
</div>
);
Expand Down

0 comments on commit 915a486

Please sign in to comment.