mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-26 01:19:33 +02:00
refactor: getGroups
This commit is contained in:
@@ -240,6 +240,7 @@ export default async function makeTool(
|
||||
description: calcData.longDescription
|
||||
}}
|
||||
verticalGroups
|
||||
// @ts-ignore
|
||||
getGroups={({ values, updateField }) => [
|
||||
...(calcData.presets?.length
|
||||
? [
|
||||
|
@@ -63,7 +63,7 @@ export default function ConvertDaysToHours({
|
||||
setResult(checkLeapYear(input));
|
||||
};
|
||||
|
||||
const getGroups: GetGroupsType<InitialValuesType> | null = () => [];
|
||||
const getGroups: GetGroupsType<InitialValuesType> | null = null;
|
||||
|
||||
return (
|
||||
<ToolContent
|
||||
|
Reference in New Issue
Block a user