Skip to content

Commit

Permalink
Cleanup for @guaka
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Nov 21, 2024
1 parent 4933d60 commit c7fc9ef
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions nr-app/src/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ import React, { useState } from "react";
import { Button, Modal, TextInput } from "react-native";
import { getFirstTagValueFromEvent } from "@/common/utils";

// todo: make it more typescriptsy
function extractLocationCode(data: any) {
for (const entry of data) {
if (Array.isArray(entry) && entry.length >= 3) {
if (entry[0] === "l" && entry[2] === "open-location-code") {
return entry[1];
}
}
}
return null;
}

const NoteMarker = ({ event }: { event: EventWithMetadata }) => {
const plusCode = getFirstTagValueFromEvent(event.event, "open-location-code");

Expand Down

0 comments on commit c7fc9ef

Please sign in to comment.