mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-05-05 15:26:45 +00:00
Updated FieldProps.children to be ReactNode to support an array. Fixed syntax as well.
This commit is contained in:
@@ -2,9 +2,9 @@ import './field.scss';
|
||||
import React from 'react';
|
||||
|
||||
type FieldProps = {
|
||||
name: string
|
||||
value: string | null
|
||||
children: React.ReactNode | null
|
||||
name: string;
|
||||
value: string | null;
|
||||
children: React.ReactNode[] | null;
|
||||
}
|
||||
|
||||
const Field = ({name, value, children}: FieldProps) => (
|
||||
|
||||
Reference in New Issue
Block a user