aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/KeyphraseQueryView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-12-03 16:21:52 -0500
committerbobzel <zzzman@gmail.com>2023-12-03 16:21:52 -0500
commitc654a31fdb48a76fb4b0562168c920ca850a7b9e (patch)
tree76410a9da12919e35f49d3d1f3899856fb0584ce /src/client/views/KeyphraseQueryView.tsx
parent23f789ab0bc9947f1bd23816183df2b5cc89b0e6 (diff)
cleaned up warnings and errors, working with typescript 20.10
Diffstat (limited to 'src/client/views/KeyphraseQueryView.tsx')
-rw-r--r--src/client/views/KeyphraseQueryView.tsx22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/client/views/KeyphraseQueryView.tsx b/src/client/views/KeyphraseQueryView.tsx
index 13d52db88..e996fc946 100644
--- a/src/client/views/KeyphraseQueryView.tsx
+++ b/src/client/views/KeyphraseQueryView.tsx
@@ -1,6 +1,6 @@
-import { observer } from "mobx-react";
-import React = require("react");
-import "./KeyphraseQueryView.scss";
+import { observer } from 'mobx-react';
+import * as React from 'react';
+import './KeyphraseQueryView.scss';
// tslint:disable-next-line: class-name
export interface KP_Props {
@@ -8,7 +8,7 @@ export interface KP_Props {
}
@observer
-export class KeyphraseQueryView extends React.Component<KP_Props>{
+export class KeyphraseQueryView extends React.Component<KP_Props> {
constructor(props: KP_Props) {
super(props);
}
@@ -22,13 +22,17 @@ export class KeyphraseQueryView extends React.Component<KP_Props>{
<form>
{keyterms.map((kp: string) => {
//return (<p>{"-" + kp}</p>);
- return (<p><label>
- <input name="query" type="radio" />
- <span>{kp}</span>
- </label></p>);
+ return (
+ <p>
+ <label>
+ <input name="query" type="radio" />
+ <span>{kp}</span>
+ </label>
+ </p>
+ );
})}
</form>
</div>
);
}
-} \ No newline at end of file
+}