diff --git a/.github/workflows/test.build.lib.yml b/.github/workflows/test.build.lib.yml index 89651384..88e6868c 100644 --- a/.github/workflows/test.build.lib.yml +++ b/.github/workflows/test.build.lib.yml @@ -40,7 +40,7 @@ jobs: build-examples: if: needs.files-changed.outputs.build == 'true' name: Test Example Apps - needs: [build, files-changed] + needs: [files-changed, build] runs-on: ubuntu-latest strategy: matrix: diff --git a/app/src/pages/MapContainer.tsx b/app/src/pages/MapContainer.tsx index 14d96c71..fe3140a1 100644 --- a/app/src/pages/MapContainer.tsx +++ b/app/src/pages/MapContainer.tsx @@ -84,6 +84,8 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) { defaultTheme={map.default_theme} showZoomControl={map.show_zoom_control} expandLayerControl={map.expand_layer_control} + tileServerUrl={map.tile_server_url} + tileServerAttribution={map.tile_server_attribution} > {layers && apis && diff --git a/lib/src/Components/Input/InputLabel.tsx b/lib/src/Components/Input/InputLabel.tsx new file mode 100644 index 00000000..a8283b6b --- /dev/null +++ b/lib/src/Components/Input/InputLabel.tsx @@ -0,0 +1,9 @@ +export const InputLabel = ({ label }: { label: string }) => { + return ( + + ) +} diff --git a/lib/src/Components/Input/RichTextEditor.tsx b/lib/src/Components/Input/RichTextEditor.tsx index 268cbe04..539ad28b 100644 --- a/lib/src/Components/Input/RichTextEditor.tsx +++ b/lib/src/Components/Input/RichTextEditor.tsx @@ -10,6 +10,7 @@ import { StarterKit } from '@tiptap/starter-kit' import { useEffect } from 'react' import { Markdown } from 'tiptap-markdown' +import { InputLabel } from './InputLabel' import { TextEditorMenu } from './TextEditorMenu' interface RichTextEditorProps { @@ -27,7 +28,6 @@ interface RichTextEditorProps { */ export function RichTextEditor({ labelTitle, - labelStyle, containerStyle, defaultValue, placeholder, @@ -88,13 +88,7 @@ export function RichTextEditor({
- {labelTitle ? ( - - ) : null} + {labelTitle ? : null}
diff --git a/lib/src/Components/Input/TextAreaInput.tsx b/lib/src/Components/Input/TextAreaInput.tsx index 2ab53264..6a880b84 100644 --- a/lib/src/Components/Input/TextAreaInput.tsx +++ b/lib/src/Components/Input/TextAreaInput.tsx @@ -1,8 +1,9 @@ import { useEffect, useRef, useState } from 'react' +import { InputLabel } from './InputLabel' + interface TextAreaProps { labelTitle?: string - labelStyle?: string containerStyle?: string dataField?: string inputStyle?: string @@ -18,7 +19,6 @@ interface TextAreaProps { export function TextAreaInput({ labelTitle, dataField, - labelStyle, containerStyle, inputStyle, defaultValue, @@ -43,13 +43,7 @@ export function TextAreaInput({ return (
- {labelTitle ? ( - - ) : null} + {labelTitle ? : null}