1- import { useCallback , useEffect , useRef , useState } from 'react' ;
2- import { commands , PeerRecord } from '../bindings' ;
3- import { platform } from '@tauri-apps/plugin-os' ;
4- import {
5- ColumnDef ,
6- flexRender ,
7- getCoreRowModel ,
8- useReactTable ,
9- } from '@tanstack/react-table' ;
10- import Header from '@/components/Header' ;
111import Container from '@/components/Container' ;
2+ import Header from '@/components/Header' ;
123import Layout from '@/components/Layout' ;
134import { Button } from '@/components/ui/button' ;
145import { Card , CardContent , CardHeader , CardTitle } from '@/components/ui/card' ;
15- import { Input } from '@/components/ui/input' ;
16- import { Label } from '@/components/ui/label' ;
176import { Checkbox } from '@/components/ui/checkbox' ;
18- import {
19- Table ,
20- TableBody ,
21- TableCell ,
22- TableHead ,
23- TableHeader ,
24- TableRow ,
25- } from '@/components/ui/table' ;
267import {
278 Dialog ,
289 DialogContent ,
@@ -32,25 +13,44 @@ import {
3213 DialogTitle ,
3314 DialogTrigger ,
3415} from '@/components/ui/dialog' ;
16+ import { Input } from '@/components/ui/input' ;
17+ import { Label } from '@/components/ui/label' ;
3518import {
3619 Popover ,
3720 PopoverContent ,
3821 PopoverTrigger ,
3922} from '@/components/ui/popover' ;
4023import { Switch } from '@/components/ui/switch' ;
24+ import {
25+ Table ,
26+ TableBody ,
27+ TableCell ,
28+ TableHead ,
29+ TableHeader ,
30+ TableRow ,
31+ } from '@/components/ui/table' ;
4132import { useErrors } from '@/hooks/useErrors' ;
33+ import { useLongPress } from '@/hooks/useLongPress' ;
34+ import { t } from '@lingui/core/macro' ;
35+ import { Plural , Trans } from '@lingui/react/macro' ;
36+ import { animated , useSpring } from '@react-spring/web' ;
37+ import {
38+ ColumnDef ,
39+ flexRender ,
40+ getCoreRowModel ,
41+ useReactTable ,
42+ } from '@tanstack/react-table' ;
43+ import { platform } from '@tauri-apps/plugin-os' ;
44+ import { useDrag } from '@use-gesture/react' ;
4245import {
4346 BadgeCheckIcon ,
4447 BadgeIcon ,
4548 BanIcon ,
4649 HelpCircleIcon ,
4750 Trash2Icon ,
4851} from 'lucide-react' ;
49- import { animated , useSpring } from '@react-spring/web' ;
50- import { useDrag } from '@use-gesture/react' ;
51- import { useLongPress } from '@/hooks/useLongPress' ;
52- import { Plural , Trans } from '@lingui/react/macro' ;
53- import { t } from '@lingui/core/macro' ;
52+ import { useCallback , useEffect , useState } from 'react' ;
53+ import { commands , PeerRecord } from '../bindings' ;
5454
5555const MobileRow = ( {
5656 peer,
@@ -208,7 +208,7 @@ export default function PeerList() {
208208 } ,
209209 {
210210 accessorKey : 'peak_height' ,
211- header : t `Peak Height` ,
211+ header : t `Height` ,
212212 } ,
213213 {
214214 accessorKey : 'trusted' ,
0 commit comments