@@ -7,6 +7,7 @@ import { download } from "@tauri-apps/plugin-upload";
7
7
import { fetch } from "@tauri-apps/plugin-http" ;
8
8
import { Child , Command } from "@tauri-apps/plugin-shell" ;
9
9
import { mkdir , exists , readDir , BaseDirectory } from "@tauri-apps/plugin-fs" ;
10
+ import { Footer } from "./components" ;
10
11
import { useStore } from "./store" ;
11
12
import "./App.css" ;
12
13
@@ -45,7 +46,6 @@ function App() {
45
46
const [ dlProgress , setDlProgress ] = useState ( 0 ) ;
46
47
const [ clientPid , setClientPid ] = useState ( 0 ) ;
47
48
48
- const appVersion = useStore ( ( s ) => s . appVersion ) ;
49
49
const isConnected = useStore ( ( s ) => s . isConnected ) ;
50
50
const isPlatformSupported = useStore ( ( s ) => s . isPlatformSupported ) ;
51
51
const networks = useStore ( ( s ) => s . networks ) ;
@@ -219,18 +219,6 @@ function App() {
219
219
return child . pid ;
220
220
}
221
221
222
- const Footer = ( ) => (
223
- < footer className = "footer footer-center bg-base-200 text-base-content/30 p-4" >
224
- < div className = "flex flex-row" >
225
- < span > ZKNetwork Client</ span >
226
- < span className = "mx-2" > |</ span >
227
- < span > Version: { appVersion } </ span >
228
- < span className = "mx-2" > |</ span >
229
- < span > Platform: { platformArch } </ span >
230
- </ div >
231
- </ footer >
232
- ) ;
233
-
234
222
return (
235
223
< div className = "flex flex-col min-h-screen" >
236
224
< main className = "flex flex-col flex-grow items-center justify-center gap-5" >
0 commit comments