-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(unlock-app): cleanup more auth (#15693)
* cleanup * nore cleanup * deleted file * Update provider/src/handler.ts * window is not always defined * type fixes --------- Co-authored-by: 0xtxbi <[email protected]>
- Loading branch information
Showing
10 changed files
with
52 additions
and
148 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
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,29 +1,20 @@ | ||
'use client' | ||
|
||
import { Launcher } from '../interface/Launcher' | ||
import { useSession } from '~/hooks/useSession' | ||
import { useAuthenticate } from '~/hooks/useAuthenticate' | ||
import LocksContent from './lock/LocksContent' | ||
import { Placeholder } from '@unlock-protocol/ui' | ||
|
||
export const HomeContent = () => { | ||
const { isLoading } = useSession() | ||
|
||
const { account } = useAuthenticate() | ||
|
||
return ( | ||
<> | ||
{isLoading && ( | ||
<Placeholder.Root> | ||
<Placeholder.Card /> | ||
</Placeholder.Root> | ||
)} | ||
{account && ( | ||
<div className="flex flex-col gap-4"> | ||
<LocksContent /> | ||
</div> | ||
)} | ||
{!account && !isLoading && <Launcher />} | ||
{!account && <Launcher />} | ||
</> | ||
) | ||
} |
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
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 was deleted.
Oops, something went wrong.