Shun Miyazawa пре 2 година
родитељ
комит
f5932e4d94
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      apps/app/src/features/search/client/components/SearchForm.tsx

+ 4 - 4
apps/app/src/features/search/client/components/SearchForm.tsx

@@ -3,13 +3,13 @@ import React, {
 } from 'react';
 } from 'react';
 
 
 type Props = {
 type Props = {
-  searchText: string,
+  searchKeyword: string,
   onChangeSearchText?: (text: string) => void,
   onChangeSearchText?: (text: string) => void,
   onClickClearButton?: () => void,
   onClickClearButton?: () => void,
 }
 }
 export const SearchForm = (props: Props): JSX.Element => {
 export const SearchForm = (props: Props): JSX.Element => {
   const {
   const {
-    searchText, onChangeSearchText, onClickClearButton,
+    searchKeyword, onChangeSearchText, onClickClearButton,
   } = props;
   } = props;
 
 
   const inputRef = useRef<HTMLInputElement>(null);
   const inputRef = useRef<HTMLInputElement>(null);
@@ -41,8 +41,8 @@ export const SearchForm = (props: Props): JSX.Element => {
         type="text"
         type="text"
         className="form-control"
         className="form-control"
         placeholder="Search..."
         placeholder="Search..."
-        value={searchText}
-        onChange={(Element) => { changeSearchTextHandler(Element) }}
+        value={searchKeyword}
+        onChange={(e) => { changeSearchTextHandler(e) }}
       />
       />
 
 
       <button
       <button