-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update loading, root page and bottom sheet (#117)
* refactor: set loading UI globally usin loading.tsx * fix: add missing dependency of Effect * fix: update css padding * fix: add proper loading state * fix: react error - two children with the same key same error in production is displayed in production as "Uncaught Error: Minified React error #418" * chore: unify code style * refactor: make root as page, not use as middleware * refactor: make board and enter map code clearer * refactor: simplify code * refactor: update root page component to not-found * refactor: separate scroll outside bottom sheet - handle scroll inside body component - fix place-list-bottom sheet gap issue * refactor: use status i/o undefined value * chore: update invitation image * fix: add min-h to image to prevent layout shift
- Loading branch information
Showing
20 changed files
with
105 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
'use client' | ||
|
||
import LoadingIndicator from '@/components/common/loading-indicator' | ||
|
||
const Loading = () => { | ||
return <LoadingIndicator /> | ||
} | ||
|
||
export default Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import NotFound from '@/app/not-found' | ||
|
||
const Root = () => { | ||
return <NotFound /> | ||
} | ||
|
||
export default Root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,9 @@ | ||
'use client' | ||
|
||
import { Suspense } from 'react' | ||
|
||
import SearchBox from './search-box' | ||
|
||
import LoadingIndicator from '@/components/common/loading-indicator' | ||
import { useIsServer } from '@/hooks/use-is-server' | ||
|
||
const Search = () => { | ||
const isServer = useIsServer() | ||
|
||
if (isServer) return <LoadingIndicator /> | ||
|
||
return ( | ||
<Suspense fallback={<LoadingIndicator />}> | ||
<SearchBox /> | ||
</Suspense> | ||
) | ||
return <SearchBox /> | ||
} | ||
|
||
export default Search |
Oops, something went wrong.