feat: Add Integration hooks UI (#2301)
This commit is contained in:
parent
c6487877bf
commit
14b51e108a
35 changed files with 1108 additions and 31 deletions
|
@ -13,6 +13,18 @@ export default () => {
|
|||
}
|
||||
};
|
||||
|
||||
export const isEmptyObject = obj =>
|
||||
Object.keys(obj).length === 0 && obj.constructor === Object;
|
||||
|
||||
export const isJSONValid = value => {
|
||||
try {
|
||||
JSON.parse(value);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
export const getTypingUsersText = (users = []) => {
|
||||
const count = users.length;
|
||||
if (count === 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue