mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
21
src/components/ErrorMessage.js
Normal file
21
src/components/ErrorMessage.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
import {get} from 'lodash';
|
||||
|
||||
const hasErrorMessage = ({
|
||||
|
||||
}) => {
|
||||
|
||||
}
|
||||
|
||||
export default function ErrorMessage({
|
||||
touched,
|
||||
errors,
|
||||
name,
|
||||
children,
|
||||
}) {
|
||||
const error = get(errors, name);
|
||||
const touch = get(touched, name);
|
||||
|
||||
return (error && touch) ? error : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user