mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-01 20:10:35 +01:00
revert split
This commit is contained in:
parent
9f258894e1
commit
f95249ee63
@ -21,16 +21,11 @@ const Split = (props: BaseToolProps) => {
|
||||
);
|
||||
|
||||
const methodTips = useSplitMethodTips();
|
||||
const allSettingsTips = useSplitSettingsTips();
|
||||
|
||||
// Get tooltip content for the currently selected method
|
||||
const settingsTips = base.params.parameters.method
|
||||
? allSettingsTips[base.params.parameters.method]
|
||||
: null;
|
||||
const settingsTips = useSplitSettingsTips(base.params.parameters.method);
|
||||
|
||||
// Get tooltip content for a specific method
|
||||
const getMethodTooltip = (option: MethodOption) => {
|
||||
const tooltipContent = allSettingsTips[option.value];
|
||||
const tooltipContent = useSplitSettingsTips(option.value);
|
||||
return tooltipContent?.tips || [];
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user