mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
14 lines
412 B
JavaScript
14 lines
412 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { registerComponent, Components } from 'meteor/vulcan:core';
|
|
|
|
const FieldErrors = ({ errors }) => (
|
|
<ul className="form-input-errors">
|
|
{errors.map((error, index) => (
|
|
<li key={index}>
|
|
<Components.FormError error={error} errorContext="field" />
|
|
</li>
|
|
))}
|
|
</ul>
|
|
);
|
|
registerComponent('FieldErrors', FieldErrors);
|