feat: dashboard style.

This commit is contained in:
Ahmed Bouhuolia
2020-04-12 12:03:45 +02:00
parent 6dcff7e4c2
commit 37fb5a6f11
24 changed files with 517 additions and 201 deletions

View 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;
}