feat: enhance footer rendering in Form component with dynamic class handling

This commit is contained in:
faisolavolut 2025-02-24 10:56:30 +07:00
parent c4a5f9d5d3
commit 25d2b40c2d
1 changed files with 12 additions and 1 deletions

View File

@ -312,7 +312,18 @@ export const Form: React.FC<any> = ({
)}
</form>
{typeof onFooter === "function" ? (
<div className="flex flex-grow flex-col">{onFooter(local)}</div>
<div
className={cx(
"flex flex-grow flex-col",
css`
.tbl {
position: relative;
}
`
)}
>
{onFooter(local)}
</div>
) : (
<div className="flex flex-grow flex-col"></div>
)}