frontend restructured

This commit is contained in:
realaravinth
2021-04-05 17:26:58 +05:30
parent 2ce8a46a3f
commit 312d02a41d
20 changed files with 594 additions and 13 deletions

View File

@@ -0,0 +1,8 @@
const isBlankString = (event, value, field) => {
if (!value.replace(/\s/g, '').length) {
event.preventDefault();
alert(`${field} can't be empty`);
}
};
export default isBlankString;