Skip to content

Commit

Permalink
not using default exports anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-besch committed Jul 16, 2022
1 parent d7883e3 commit 353a25a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/component/compare_view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface CompareViewProps {
config?: ComponentConfig;
}

const CompareView: React.FC<CompareViewProps> = (props) => {
export const CompareView: React.FC<CompareViewProps> = (props) => {
// used to access ctx after render
let canvas_ref = React.createRef<HTMLCanvasElement>();
let circle_ref = React.createRef<HTMLInputElement>();
Expand Down Expand Up @@ -67,5 +67,3 @@ const CompareView: React.FC<CompareViewProps> = (props) => {
);
}

export default CompareView;

2 changes: 1 addition & 1 deletion src/component/example/react_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import CompareView from "../compare_view";
import { CompareView } from "../compare_view";

const ReactApp: React.FC = () => {
return (
Expand Down

0 comments on commit 353a25a

Please sign in to comment.