mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
re-structure to monorepo.
This commit is contained in:
12
packages/webapp/src/components/ErrorMessage/index.tsx
Normal file
12
packages/webapp/src/components/ErrorMessage/index.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
// @ts-nocheck
|
||||
import React from 'react';
|
||||
import { get } from 'lodash';
|
||||
|
||||
const hasErrorMessage = ({}) => {};
|
||||
|
||||
export 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