tangled
alpha
login
or
join now
margin.at
/
margin
86
fork
atom
Write on the margins of the internet. Powered by the AT Protocol.
margin.at
extension
web
atproto
comments
86
fork
atom
overview
issues
4
pulls
1
pipelines
refactor: consistent usage of Annotations
Henrique Dias
1 month ago
59e0b6ab
2f3f1051
+13
-6
3 changed files
expand all
collapse all
unified
split
web
src
views
content
SitePage.tsx
Url.tsx
core
HighlightImporter.tsx
+4
-1
web/src/views/content/SitePage.tsx
···
257
257
<Tabs
258
258
tabs={[
259
259
{ id: "all", label: `All (${totalItems})` },
260
260
-
{ id: "annotations", label: `Notes (${annotations.length})` },
260
260
+
{
261
261
+
id: "annotations",
262
262
+
label: `Annotations (${annotations.length})`,
263
263
+
},
261
264
{
262
265
id: "highlights",
263
266
label: `Highlights (${highlights.length})`,
+4
-1
web/src/views/content/Url.tsx
···
290
290
<Tabs
291
291
tabs={[
292
292
{ id: "all", label: `All (${totalItems})` },
293
293
-
{ id: "annotations", label: `Notes (${annotations.length})` },
293
293
+
{
294
294
+
id: "annotations",
295
295
+
label: `Annotations (${annotations.length})`,
296
296
+
},
294
297
{
295
298
id: "highlights",
296
299
label: `Highlights (${highlights.length})`,
+5
-4
web/src/views/core/HighlightImporter.tsx
···
1
1
-
import React, { useState, useRef } from "react";
2
1
import {
3
3
-
Upload,
4
4
-
Loader2,
2
2
+
AlertCircle,
5
3
CheckCircle2,
6
6
-
AlertCircle,
7
4
Download,
5
5
+
Loader2,
6
6
+
Upload,
8
7
} from "lucide-react";
8
8
+
import type React from "react";
9
9
+
import { useRef, useState } from "react";
9
10
import { createHighlight } from "../../api/client";
10
11
import type { Selector } from "../../types";
11
12