Skip to content

Commit

Permalink
fix: fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrylo Hudym-Levkovych authored and Kyrylo Hudym-Levkovych committed Jan 3, 2024
1 parent 296ec07 commit 21168db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/gatsby-browser.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const React = require('react');
const { ToastContainer } = require('~paragon-react');
const { SettingsContextProvider } = require('./src/context/SettingsContext');
const { InsightsContextProvider } = require('./src/context/InsightsContext');
const { ToastContainer } = require("~paragon-react");

// wrap whole app in settings context
exports.wrapRootElement = ({ element }) => (
Expand Down
6 changes: 4 additions & 2 deletions www/src/components/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ import MiyazakiCard from './exampleComponents/MiyazakiCard';
import HipsterIpsum from './exampleComponents/HipsterIpsum';
import ExamplePropsForm from './exampleComponents/ExamplePropsForm';

const { Collapsible, IconButton, Icon, toast } = ParagonReact;
const {
Collapsible, IconButton, Icon, toast,
} = ParagonReact;

export type CollapsibleLiveEditorTypes = {
children: React.ReactNode;
Expand Down Expand Up @@ -129,7 +131,7 @@ function CodeBlock({

const handleCopyCodeExample = () => {
navigator.clipboard.writeText(codeExample);
toast({message: 'Code example copied to clipboard!', duration: 2000 });
toast({ message: 'Code example copied to clipboard!', duration: 2000 });
};

if (live) {
Expand Down

0 comments on commit 21168db

Please sign in to comment.