mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 04:10:32 +00:00
feat: Uploading company logo
This commit is contained in:
@@ -13,7 +13,6 @@ import jsCookie from 'js-cookie';
|
||||
import { deepMapKeys } from './map-key-deep';
|
||||
export * from './deep';
|
||||
|
||||
|
||||
export const getCookie = (name, defaultValue) =>
|
||||
_.defaultTo(jsCookie.get(name), defaultValue);
|
||||
|
||||
@@ -352,6 +351,14 @@ export const transformToForm = (obj, emptyInitialValues) => {
|
||||
);
|
||||
};
|
||||
|
||||
export function excludePrivateProps(
|
||||
obj: Record<string, any>,
|
||||
): Record<string, any> {
|
||||
return Object.fromEntries(
|
||||
Object.entries(obj).filter(([key, value]) => !key.startsWith('_')),
|
||||
);
|
||||
}
|
||||
|
||||
export function inputIntent({ error, touched }) {
|
||||
return error && touched ? Intent.DANGER : '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user