Added search box

This commit is contained in:
Przemek Wiech
2019-03-24 18:11:23 +01:00
parent 120e4effbb
commit 9eecc7a0fd
9 changed files with 304 additions and 93 deletions

View File

@@ -190,6 +190,7 @@ export class App extends React.Component<RouteComponentProps, {}> {
render={(props: RouteComponentProps) => (
<TopBar
{...props}
gedcom={this.state.data && this.state.data.gedcom}
showingChart={
!!(
this.props.history.location.pathname === '/view' &&
@@ -197,6 +198,7 @@ export class App extends React.Component<RouteComponentProps, {}> {
this.state.selection
)
}
onSelection={this.onSelection}
onPrint={() => {
analyticsEvent('print');
this.chartRef && this.chartRef.print();