Separate Faktiska workflow and refine symbol picker
This commit is contained in:
@@ -5,10 +5,11 @@ import { ResultKeyVal, resultOrder, ResultOrderKeys } from "../../../consts";
|
||||
import { SelectOrder } from "../SelectOrder";
|
||||
import { QueryResult } from "../helpers";
|
||||
import { GridResult } from "./GridResult";
|
||||
import { MapView } from "../../../components/map/MapView";
|
||||
|
||||
type ResultView = "grid" | "list";
|
||||
const resultViews: Array<ResultView> = ["grid", "list"];
|
||||
const viewLabels: Record<ResultView,string> = {grid:'grid',list:'list'}
|
||||
type ResultView = "grid" | "list" | "map_1920x1080" | "map_1920x1080_wind" | "map_3840x1440" | "map_3840x1440_wind";
|
||||
const resultViews: Array<ResultView> = ["grid", "list", "map_1920x1080", "map_1920x1080_wind", "map_3840x1440", "map_3840x1440_wind"];
|
||||
const viewLabels: Record<ResultView,string> = {grid:'grid',list:'list',map_1920x1080:'map_1920x1080',map_1920x1080_wind:'map_1920x1080_wind',map_3840x1440:'map_3840x1440',map_3840x1440_wind:'map_3840x1440_wind'}
|
||||
|
||||
export const ResultView: Component<{
|
||||
result: Resource<QueryResult>
|
||||
@@ -72,6 +73,10 @@ export const ResultView: Component<{
|
||||
/>)}
|
||||
</div>
|
||||
</Show>
|
||||
<Show when={getResultView() === "map_1920x1080"}><MapView type="map_1920x1080" data={cityData}/></Show>
|
||||
<Show when={getResultView() === "map_1920x1080_wind"}><MapView type="map_1920x1080_wind" data={cityData}/></Show>
|
||||
<Show when={getResultView() === "map_3840x1440"}><MapView type="map_3840x1440" data={cityData}/></Show>
|
||||
<Show when={getResultView() === "map_3840x1440_wind"}><MapView type="map_3840x1440_wind" data={cityData}/></Show>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user