Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
huang2002 committed Feb 1, 2019
1 parent 09691ec commit 89154fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/src/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ const Dialog = HUI.define<{}, HUI.Store<DialogStore, DialogStoreHandlers>, HUI.E
return (
<HUI.Fragment>
<button onclick={store.getHandler('toggle')}>Toggle dialog</button>
{store.get('on') && (
{store.get('on') && [
<p>(Dialog window is shown.)</p>,
<HUI.Portal>
<p attr={{ style: 'color: blue;' }}>[Dialog window]</p>
</HUI.Portal>
)}
]}
</HUI.Fragment>
);
}
Expand Down

0 comments on commit 89154fb

Please sign in to comment.