@@ -17,7 +17,6 @@ export default function App() {
17
17
const [ host , setHost ] = useState < string > ( '' ) ;
18
18
const [ sendingRequest , setSendingRequest ] = useState ( false ) ;
19
19
const [ error , setError ] = useState < string | null > ( null ) ;
20
- const [ theme ] = useLocalStorage ( 'theme' , '' ) ;
21
20
const [ groupby ] = useLocalStorage ( 'groupby' , 'default' ) ;
22
21
const [ sort ] = useLocalStorage ( 'sort' , 'default' ) ;
23
22
const [ showGet ] = useLocalStorage ( 'showGet' , 'true' ) ;
@@ -32,8 +31,8 @@ export default function App() {
32
31
threshold : 0.3
33
32
} ;
34
33
35
- const getUrl = ( url : string , showGet : string , showPost : string , showDelete : string , showPut : string , showPatch : string , showHead : string , theme : string , sort : string , groupby : string ) => {
36
- return `${ url } ?json=true&showGet=${ showGet } &showPost=${ showPost } &showDelete=${ showDelete } &showPut=${ showPut } &showPatch=${ showPatch } &showHead=${ showHead } &theme= ${ theme } & sort=${ sort } &groupby=${ groupby } `
34
+ const getUrl = ( url : string , showGet : string , showPost : string , showDelete : string , showPut : string , showPatch : string , showHead : string , sort : string , groupby : string ) => {
35
+ return `${ url } ?json=true&showGet=${ showGet } &showPost=${ showPost } &showDelete=${ showDelete } &showPut=${ showPut } &showPatch=${ showPatch } &showHead=${ showHead } &sort=${ sort } &groupby=${ groupby } `
37
36
}
38
37
39
38
useEffect ( ( ) => {
@@ -55,7 +54,7 @@ export default function App() {
55
54
}
56
55
setApiURL ( url )
57
56
58
- const api = getUrl ( url , showGet , showPost , showDelete , showPut , showPatch , showHead , theme , sort , groupby )
57
+ const api = getUrl ( url , showGet , showPost , showDelete , showPut , showPatch , showHead , sort , groupby )
59
58
generateDocs ( api )
60
59
} , [ ] )
61
60
@@ -100,7 +99,7 @@ export default function App() {
100
99
showHead : string ,
101
100
sort : string ,
102
101
groupby : string ) => {
103
- const url = getUrl ( apiURL , showGet , showPost , showDelete , showPut , showPatch , showHead , theme , sort , groupby )
102
+ const url = getUrl ( apiURL , showGet , showPost , showDelete , showPut , showPatch , showHead , sort , groupby )
104
103
generateDocs ( url )
105
104
}
106
105
return (
0 commit comments