File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { JSX } from "react" ;
2- import { Link } from "react-router" ;
32
43import LBRY from "./LBRY" ;
54
Original file line number Diff line number Diff line change 1- import { JSX } from "react" ;
1+ import { JSX , PropsWithChildren } from "react" ;
22import { BrowserRouter , MemoryRouter } from "react-router" ;
33
44const isElectron : boolean = false ; // TODO Add detection
55
6- function AppRouter ( { children } ) : JSX . Element {
6+ function AppRouter ( { children } : PropsWithChildren ) : JSX . Element {
77 if ( isElectron ) {
88 return < MemoryRouter > { children } </ MemoryRouter > ;
99 }
Original file line number Diff line number Diff line change 11async function rpc ( method : string , params ?: object ) : Promise < object > {
2- return await ( await fetch ( import . meta. env . VITE_DEFAULT_DAEMON , {
2+ return await ( await fetch ( import . meta. env . VITE_DEFAULT_DAEMON , {
33 method : 'POST' ,
44 // headers: {
55 // 'Content-Type': 'application/json',
You can’t perform that action at this time.
0 commit comments