[2.4.3] Add Docker Support, Make Address Optional

This commit is contained in:
Amruth Pillai
2020-12-24 11:08:59 +05:30
parent c1cc9d0a69
commit 85a489cefa
15 changed files with 92 additions and 51 deletions

View File

@ -48,6 +48,9 @@ export const getUnsplashPhoto = async () => {
return response.url;
};
export const hasAddress = (address) =>
!!address.line1 || !!address.line2 || !!address.city || !!address.pincode;
export const hexToRgb = (hex) => {
const shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i;
hex = hex.replace(shorthandRegex, (m, r, g, b) => r + r + g + g + b + b);