web client v0.4 (edit restaurant info)

This commit is contained in:
2020-09-26 15:20:38 +02:00
parent 315c58cc8d
commit 3fdc93ef28
17 changed files with 884 additions and 93 deletions

View File

@@ -29,6 +29,19 @@ export function prepareTags(tags) {
return outTags;
}
export function decodeTags(tags) {
let outTags = [];
if (tags.cardPayments === true) outTags.push("Płatność kartą");
if (tags.petFriendly === true) outTags.push("Lubimy zwierzaki");
if (tags.glutenFree === true) outTags.push("Bezglutenowe");
if (tags.vegan === true) outTags.push("Wegańskie");
if (tags.vegetarian === true) outTags.push("Wegetariańskie");
if (tags.alcohol === true) outTags.push("Podajemy alkohol");
if (tags.delivery === true) outTags.push("Dowozimy");
return outTags;
}
export const openInNewTab = (url) => {
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
if (newWindow) newWindow.opener = null;