Skip to content

Commit

Permalink
fix for builds (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Incin authored Jun 13, 2024
1 parent b8933dc commit bee6b12
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@ import { Trelliscope } from './jsApi';
window.trelliscopeApp = trelliscopeApp;
window.Trelliscope = Trelliscope;

const TestComponent = ({ row }) => {
return (
<div
style={{
width: '100%',
height: '100%',
border: '4px solid red',
textAlign: 'center',
boxSizing: 'border-box',
}}
>
{row.country}
</div>
);
};
interface TestComponentProps {
row: Datum;
}

const TestComponent: React.FC<TestComponentProps> = ({ row }) => (
<div
style={{
width: '100%',
height: '100%',
border: '4px solid red',
textAlign: 'center',
boxSizing: 'border-box',
}}
>
{row.country}
</div>
);

// if in development mode, populate div with an example trelliscope app
if (import.meta.env.MODE === 'development') {
Expand Down

0 comments on commit bee6b12

Please sign in to comment.