diff --git a/lib/src/Components/Map/Layer.tsx b/lib/src/Components/Map/Layer.tsx index 3ffba5cb..2423f73b 100644 --- a/lib/src/Components/Map/Layer.tsx +++ b/lib/src/Components/Map/Layer.tsx @@ -20,12 +20,12 @@ export const Layer = ({ id, data, children, - name = 'places', - menuText = 'add new place', - menuColor = '#2E7D32', + name, + menuText, + menuColor, markerIcon, markerShape = 'circle', - markerDefaultColor = '#777', + markerDefaultColor, markerDefaultColor2 = 'RGBA(35, 31, 32, 0.2)', api, itemType, diff --git a/lib/src/Components/Map/Subcomponents/Controls/LayerControl.tsx b/lib/src/Components/Map/Subcomponents/Controls/LayerControl.tsx index 6e40bd07..38481567 100644 --- a/lib/src/Components/Map/Subcomponents/Controls/LayerControl.tsx +++ b/lib/src/Components/Map/Subcomponents/Controls/LayerControl.tsx @@ -5,7 +5,7 @@ import LayerSVG from '#assets/layer.svg' import { useIsLayerVisible, useToggleVisibleLayer } from '#components/Map/hooks/useFilter' import { useLayers } from '#components/Map/hooks/useLayers' -export function LayerControl({ expandLayerControl = false }: { expandLayerControl: boolean }) { +export function LayerControl({ expandLayerControl }: { expandLayerControl: boolean }) { const [open, setOpen] = useState(expandLayerControl) const layers = useLayers() diff --git a/lib/src/Components/Profile/Subcomponents/ProfileTextView.tsx b/lib/src/Components/Profile/Subcomponents/ProfileTextView.tsx index dceb7a17..43a850ec 100644 --- a/lib/src/Components/Profile/Subcomponents/ProfileTextView.tsx +++ b/lib/src/Components/Profile/Subcomponents/ProfileTextView.tsx @@ -6,7 +6,7 @@ import type { Item } from '#types/Item' export const ProfileTextView = ({ item, - dataField = 'text', + dataField, heading, hideWhenEmpty, }: { diff --git a/lib/src/Components/TipTap/utils/preprocessMarkdown.spec.ts b/lib/src/Components/TipTap/utils/preprocessMarkdown.spec.ts index 4beeaebb..a2feb748 100644 --- a/lib/src/Components/TipTap/utils/preprocessMarkdown.spec.ts +++ b/lib/src/Components/TipTap/utils/preprocessMarkdown.spec.ts @@ -310,7 +310,6 @@ describe('preprocessItemMentions', () => { }) }) - // ============================================================================ // removeMarkdownSyntax // ============================================================================ @@ -498,4 +497,3 @@ describe('preprocessMarkdown', () => { }) }) }) - diff --git a/lib/src/Components/TipTap/utils/simpleMarkdownToHtml.spec.ts b/lib/src/Components/TipTap/utils/simpleMarkdownToHtml.spec.ts index f7e32eae..aea25b7b 100644 --- a/lib/src/Components/TipTap/utils/simpleMarkdownToHtml.spec.ts +++ b/lib/src/Components/TipTap/utils/simpleMarkdownToHtml.spec.ts @@ -129,7 +129,10 @@ describe('simpleMarkdownToHtml', () => { describe('Item Mentions', () => { it('renders mention as link with item color', () => { const input = '@Alice' - const result = simpleMarkdownToHtml(input, [], { items: mockItems, getItemColor: mockGetItemColor }) + const result = simpleMarkdownToHtml(input, [], { + items: mockItems, + getItemColor: mockGetItemColor, + }) expect(result).toContain('href="/item/abc-123"') expect(result).toContain('class="item-mention"') expect(result).toContain('style="color: #ef4444') @@ -159,4 +162,3 @@ describe('simpleMarkdownToHtml', () => { }) }) }) - diff --git a/lib/src/Components/TipTap/utils/xss.spec.ts b/lib/src/Components/TipTap/utils/xss.spec.ts index 88fb43b4..1cdd9473 100644 --- a/lib/src/Components/TipTap/utils/xss.spec.ts +++ b/lib/src/Components/TipTap/utils/xss.spec.ts @@ -197,4 +197,3 @@ describe('XSS Prevention - simpleMarkdownToHtml', () => { }) }) }) -