From d48e138422a3f4797c5f0bb8f6e1905dcf9b1b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20L=C3=B6tzsch?= Date: Thu, 10 Mar 2022 11:28:40 +0100 Subject: [PATCH] frontend: column order --- .../components/ngo/HostOfferLookupTable.tsx | 96 +++++++++---------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/frontend/search/components/ngo/HostOfferLookupTable.tsx b/frontend/search/components/ngo/HostOfferLookupTable.tsx index a976a28..c239eac 100644 --- a/frontend/search/components/ngo/HostOfferLookupTable.tsx +++ b/frontend/search/components/ngo/HostOfferLookupTable.tsx @@ -33,38 +33,8 @@ const makeColumnDefinition = (data: any ) => Object.keys(data) const columnsRaw: ColumnRaw[] = [ { - "name": "beds", - "header": "beds", - "type": "number" - }, - { - "name": "place_street", - "header": "place street", - "type": "string" - }, - { - "name": "contact_email", - "header": "contact email", - "type": "string" - }, - { - "name": "contact_name_full", - "header": "contact name full", - "type": "string" - }, - { - "name": "time_duration_str", - "header": "time duration str", - "type": "string" - }, - { - "name": "note", - "header": "note", - "type": "string" - }, - { - "name": "place_street_number", - "header": "place street number", + "name": "place_country", + "header": "place country", "type": "string" }, { @@ -73,14 +43,9 @@ const columnsRaw: ColumnRaw[] = [ "type": "string" }, { - "name": "contact_phone", - "header": "contact phone", - "type": "string" - }, - { - "name": "place_zip", - "header": "place zip", - "type": "string" + "name": "beds", + "header": "beds", + "type": "number" }, { "name": "time_from_str", @@ -88,15 +53,10 @@ const columnsRaw: ColumnRaw[] = [ "type": "date" }, { - "name": "place_country", - "header": "place country", + "name": "time_duration_str", + "header": "time duration str", "type": "string" }, - { - "name": "animals_present", - "header": "animals present", - "type": "boolean" - }, { "name": "languages", "header": "languages", @@ -111,7 +71,47 @@ const columnsRaw: ColumnRaw[] = [ "name": "animals_allowed", "header": "animals allowed", "type": "boolean" - } + }, + { + "name": "animals_present", + "header": "animals present", + "type": "boolean" + }, + { + "name": "note", + "header": "note", + "type": "string" + }, + { + "name": "contact_name_full", + "header": "contact name full", + "type": "string" + }, + { + "name": "contact_phone", + "header": "contact phone", + "type": "string" + }, + { + "name": "contact_email", + "header": "contact email", + "type": "string" + }, + { + "name": "place_street", + "header": "place street", + "type": "string" + }, + { + "name": "place_street_number", + "header": "place street number", + "type": "string" + }, + { + "name": "place_zip", + "header": "place zip", + "type": "string" + }, ] const filterMappings = {