Skip to content

Commit

Permalink
Fix types in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tu55eladd committed Oct 24, 2024
1 parent a28164d commit f3b0646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/felles-komponenter/hidden-if/hidden-if.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

import HiddenIfHOC from './hidden-if.tsx';

const Komp = ({ hidden }: { hidden: boolean }) => (
const Komp = ({ hidden }: { hidden: boolean | (() => boolean) }) => (
<HiddenIfHOC hidden={hidden}>
<div>test</div>
</HiddenIfHOC>
Expand Down

0 comments on commit f3b0646

Please sign in to comment.