Add spinner and fix og-image

This commit is contained in:
schmelczerandras 2020-10-24 11:02:44 +02:00
parent b55e927a34
commit f6f54483db
9 changed files with 65 additions and 14 deletions

View file

@ -0,0 +1,7 @@
export const hide = (e: HTMLElement, useDisplay = false) => {
if (useDisplay) {
e.style.display = 'none';
} else {
e.style.visibility = 'hidden';
}
};

View file

@ -0,0 +1,7 @@
export const show = (e: HTMLElement, useDisplay = false, normalDisplayValue?: string) => {
if (useDisplay) {
e.style.display = normalDisplayValue!;
} else {
e.style.visibility = 'inherit';
}
};