Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion app/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
import { useEffect, useState } from "react"
import Auth from "./components/Auth"
import Dashboard from "./components/Dashboard"
import './index.css'

export default function App(){
const [user, setUser] = useState(null)
const [currentStage, setCurrentStage] = useState(null)

useEffect(() => {
window.electronAPI.onStageUpdate((event, stage) => {
setCurrentStage(stage)
})
}, [])

return(
<Auth />
<>
{user
? <Dashboard user={user} currentStage={currentStage} />
: <Auth onAuthSuccess={setUser}/>
}
</>
)
}
5 changes: 5 additions & 0 deletions app/src/assets/img1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
679 changes: 679 additions & 0 deletions app/src/assets/img2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions app/src/assets/img3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions app/src/assets/img4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading