nicolium: fix minor styling issue

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-02-15 23:51:41 +01:00
parent f81d478be6
commit 6e89aacd6a

View File

@ -1,3 +1,4 @@
import clsx from 'clsx';
import React from 'react';
interface IForm {
@ -10,7 +11,7 @@ interface IForm {
}
/** Form element with custom styles. */
const Form: React.FC<IForm> = ({ onSubmit, children, ...filteredProps }) => {
const Form: React.FC<IForm> = ({ onSubmit, children, className, ...filteredProps }) => {
const handleSubmit: React.FormEventHandler = React.useCallback(
(event) => {
event.preventDefault();
@ -23,7 +24,12 @@ const Form: React.FC<IForm> = ({ onSubmit, children, ...filteredProps }) => {
);
return (
<form data-testid='form' onSubmit={handleSubmit} className='⁂-form' {...filteredProps}>
<form
data-testid='form'
onSubmit={handleSubmit}
className={clsx('⁂-form', className)}
{...filteredProps}
>
{children}
</form>
);