From ba69e4d0d453a80e40c140751789e3d707759a8c Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Mon, 15 Apr 2024 13:44:49 +0000 Subject: [PATCH] reduce redundancy in HelpCol --- src/fragmentarium/ui/SearchForm.tsx | 46 +++++++++++++---------------- 1 file changed, 21 insertions(+), 25 deletions(-) diff --git a/src/fragmentarium/ui/SearchForm.tsx b/src/fragmentarium/ui/SearchForm.tsx index 301f3f194..5e620c8cc 100644 --- a/src/fragmentarium/ui/SearchForm.tsx +++ b/src/fragmentarium/ui/SearchForm.tsx @@ -2,7 +2,14 @@ import React, { Component } from 'react' import LuckyButton from 'fragmentarium/ui/front-page/LuckyButton' import PioneersButton from 'fragmentarium/ui/PioneersButton' import { withRouter, RouteComponentProps } from 'react-router-dom' -import { Button, ButtonToolbar, Col, Form, Row } from 'react-bootstrap' +import { + Button, + ButtonToolbar, + Col, + Form, + OverlayTriggerProps, + Row, +} from 'react-bootstrap' import { stringify } from 'query-string' import BibliographySelect from 'bibliography/ui/BibliographySelect' import HelpTrigger from 'common/HelpTrigger' @@ -70,14 +77,17 @@ export function isValidNumber(number?: string): boolean { export const helpColSize = 1 -function HelpCol({ ...props }): JSX.Element { +function HelpCol({ + ...props +}: Pick): JSX.Element { return ( + > + + ) } @@ -181,9 +191,7 @@ class SearchForm extends Component { <>
- - - + { - - - + { - - - + { - - - + { - - - + { - - - + { - - - +