-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): adding scroll campaign mint page (#2941)
* feat(app): adding scroll campaign mint page * feat(app): moving attestation issuance to hook - wip * chore(app): moved useAttestation to separate file * feat: wip onchain cred formatting * feat: vc normalization * feat(iam): wip scroll dev badge endpoint * wip * cleanup, loading stamps from db * feat(app): added scroll sepolia chain * feat(iam): working current badge level check * fix(app): fixed loading passport from DB * fix(app): fix existing tests * feat: styled wizard up to were sorry view * fix(app): merge fixes * test fix * build fix --------- Co-authored-by: schultztimothy <[email protected]>
- Loading branch information
1 parent
d2b9a32
commit f72b51b
Showing
35 changed files
with
1,386 additions
and
486 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
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,32 @@ | ||
import React from "react"; | ||
|
||
import { twMerge } from "tailwind-merge"; | ||
|
||
export const LoadingBar = ({ className }: { className?: string }) => { | ||
return ( | ||
<div | ||
className={twMerge( | ||
"h-10 w-full bg-size-400 animate-[loading-gradient_5s_ease-in-out_infinite] bg-gradient-to-r from-background via-foreground-5 to-background rounded-lg my-2", | ||
className | ||
)} | ||
/> | ||
); | ||
}; | ||
|
||
export type LoadingBarSectionProps = { | ||
isLoading: boolean; | ||
className?: string; | ||
loadingBarClassName?: string; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const LoadingBarSection = ({ isLoading, className, loadingBarClassName, children }: LoadingBarSectionProps) => { | ||
return ( | ||
<div className={twMerge("relative", className)}> | ||
<LoadingBar | ||
className={twMerge("absolute top-0 left-0", isLoading ? "visible" : "invisible", loadingBarClassName)} | ||
/> | ||
<div className={isLoading ? "invisible" : "visible"}>{children}</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.