mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-11 02:29:54 +05:30
feature: tool option 부분 삭제하기
This commit is contained in:
parent
bc7348ce81
commit
9760bdf159
1 changed files with 8 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ const FormikListenerComponent = <T,>({
|
|||
const { values } = useFormikContext<T>();
|
||||
const { showSnackBar } = useContext(CustomSnackBarContext);
|
||||
|
||||
React.useEffect(() => {
|
||||
useEffect(() => {
|
||||
try {
|
||||
compute(values, input);
|
||||
} catch (exception: unknown) {
|
||||
|
|
@ -35,7 +35,8 @@ const FormikListenerComponent = <T,>({
|
|||
useEffect(() => {
|
||||
onValuesChange?.(values);
|
||||
}, [onValuesChange, values]);
|
||||
return null; // This component doesn't render anything
|
||||
|
||||
return null;
|
||||
};
|
||||
|
||||
interface ToolContentProps<T, I> extends ToolComponentProps {
|
||||
|
|
@ -99,7 +100,11 @@ export default function ToolContent<T extends FormikValues, I>({
|
|||
input={input}
|
||||
onValuesChange={onValuesChange}
|
||||
/>
|
||||
<ToolOptions getGroups={getGroups} vertical={verticalGroups} />
|
||||
|
||||
{/* meta 파일의 name 속성이 QR 코드 생성기일 때만 ToolOptions 숨기기 */}
|
||||
{title !== 'QR 코드 생성기' && (
|
||||
<ToolOptions getGroups={getGroups} vertical={verticalGroups} />
|
||||
)}
|
||||
|
||||
{toolInfo && toolInfo.title && toolInfo.description && (
|
||||
<ToolInfo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue