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 da6fd58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions example-plugin-app/src/PluginOne.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React, {useState, useEffect} from 'react';
/* eslint react/prop-types: off */

import React from 'react';
import { Plugin } from '@edx/frontend-platform/plugins';

function Greeting({subject}) {
return <div>Hello {subject.toUpperCase()}</div>
function Greeting({ subject }) {
return <div>Hello {subject.toUpperCase()}</div>;
}

function errorFallback(error) {
Expand All @@ -11,7 +13,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
1 change: 0 additions & 1 deletion src/plugins/Plugin.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ describe('Plugin', () => {
);

const { container } = render(component);
console.log(container.children);
expect(container.firstChild).toHaveTextContent('Something went wrong');
});
});

0 comments on commit da6fd58

Please sign in to comment.