mirror of
https://github.com/Novattz/creamlinux-installer.git
synced 2026-05-02 04:52:03 -04:00
Formatting
This commit is contained in:
23
src/App.tsx
23
src/App.tsx
@@ -27,9 +27,9 @@ function App() {
|
||||
filteredGames,
|
||||
handleRefresh,
|
||||
isLoading,
|
||||
error
|
||||
error,
|
||||
} = useAppLogic({ autoLoad: true })
|
||||
|
||||
|
||||
// Get action handlers from context
|
||||
const {
|
||||
dlcDialog,
|
||||
@@ -38,15 +38,12 @@ function App() {
|
||||
progressDialog,
|
||||
handleGameAction,
|
||||
handleDlcConfirm,
|
||||
handleGameEdit
|
||||
handleGameEdit,
|
||||
} = useAppContext()
|
||||
|
||||
// Show loading screen during initial load
|
||||
if (isInitialLoad) {
|
||||
return <InitialLoadingScreen
|
||||
message={scanProgress.message}
|
||||
progress={scanProgress.progress}
|
||||
/>
|
||||
return <InitialLoadingScreen message={scanProgress.message} progress={scanProgress.progress} />
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -56,17 +53,17 @@ function App() {
|
||||
<AnimatedBackground />
|
||||
|
||||
{/* Header with search */}
|
||||
<Header
|
||||
onRefresh={handleRefresh}
|
||||
onSearch={handleSearchChange}
|
||||
searchQuery={searchQuery}
|
||||
<Header
|
||||
onRefresh={handleRefresh}
|
||||
onSearch={handleSearchChange}
|
||||
searchQuery={searchQuery}
|
||||
refreshDisabled={isLoading}
|
||||
/>
|
||||
|
||||
<div className="main-content">
|
||||
{/* Sidebar for filtering */}
|
||||
<Sidebar setFilter={setFilter} currentFilter={filter} />
|
||||
|
||||
|
||||
{/* Show error or game list */}
|
||||
{error ? (
|
||||
<div className="error-message">
|
||||
@@ -112,4 +109,4 @@ function App() {
|
||||
)
|
||||
}
|
||||
|
||||
export default App
|
||||
export default App
|
||||
|
||||
Reference in New Issue
Block a user