Skip to content

Commit 16e3b58

Browse files
committed
fix: move link builder to feature dir
1 parent f1d2d4d commit 16e3b58

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/components/note/Note.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ import { Badge, Button, Card, Group, Stack, Text } from "@mantine/core";
22
import { useMemo } from "react";
33

44
import { LANGUAGE_ID_TO_LABEL } from "../../feature/search/language";
5+
import {
6+
birdWatchLinkFromNote,
7+
postLinkFromNote,
8+
} from "../../feature/twitter/link-builder";
59
import type { SearchedNote } from "../../generated/api/schemas";
6-
import { birdWatchLinkFromNote, postLinkFromNote } from "../../lib/twitter";
710
import { Post } from "../post/Post";
811
import { NoteStatus } from "./NoteStatus";
912
import { NoteTopic } from "./NoteTopics";

app/lib/twitter.ts renamed to app/feature/twitter/link-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Note } from "../generated/api/schemas";
1+
import type { Note } from "../../generated/api/schemas";
22

33
export const birdWatchLinkFromNote = (note: Note): string => {
44
return `https://x.com/i/birdwatch/t/${note.postId}`;

0 commit comments

Comments
 (0)