- 수정사항 적용

This commit is contained in:
HyeonJongKim
2025-11-17 10:39:38 +09:00
parent 6c94b1d039
commit 67a5d91cdb
7 changed files with 65 additions and 28 deletions

View File

@@ -21,12 +21,12 @@ export const FilterSelectInput = ({
const getSelectOptions = () => {
let rs = [];
for(let i=0;i<selectOptions.length;i++){
for (let i = 0; i < selectOptions.length; i++) {
rs.push(
<option
key={ `key-filter-select-input-${i}` }
value={ selectOptions[i]?.value }
>{ selectOptions[i]?.name }</option>
key={`key-filter-select-input-${i}`}
value={selectOptions[i]?.value}
>{selectOptions[i]?.name}</option>
);
}
return rs;
@@ -34,14 +34,14 @@ export const FilterSelectInput = ({
const onChangeSelect = (e: ChangeEvent<HTMLSelectElement>) => {
let value = e.target.value;
if(!!selectSetter){
if (!!selectSetter) {
selectSetter(value);
}
};
const onChangeInput = (e: ChangeEvent<HTMLInputElement>) => {
let value = e.target.value;
if(!!inputSetter){
if (!!inputSetter) {
inputSetter(value);
}
};
@@ -49,12 +49,12 @@ export const FilterSelectInput = ({
return (
<>
<div className="opt-field">
<div
<div
className="opt-label"
style={{ fontSize: 'var(--fs-14)' }}
>{ title }</div>
<div className="opt-controls">
<select
<select
className="w-110"
value={ selectValue }
onChange={ onChangeSelect }
@@ -64,9 +64,9 @@ export const FilterSelectInput = ({
<input
className="flex-1"
type="text"
style={{ height: '38px'}}
value={ inputValue }
onChange={ onChangeInput }
style={{ height: '38px' }}
value={inputValue}
onChange={onChangeInput}
/>
</div>
</div>