mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 10:33:02 -05:00
* Apply import sorting with perfectionist/sort-named-imports rule - Add perfectionist/sort-named-imports oxlint rule - Sort named imports: value imports before type imports - Update component-library and desktop-client files to match new rule * Add release notes for linting updates on named imports
15 lines
330 B
TypeScript
15 lines
330 B
TypeScript
import { type CSSProperties, type ReactNode } from 'react';
|
|
|
|
import { View } from './View';
|
|
|
|
type FormErrorProps = {
|
|
style?: CSSProperties;
|
|
children?: ReactNode;
|
|
};
|
|
|
|
export function FormError({ style, children }: FormErrorProps) {
|
|
return (
|
|
<View style={{ color: 'red', fontSize: 13, ...style }}>{children}</View>
|
|
);
|
|
}
|