Skip to content

Commit

Permalink
1122 footer updates (passportxyz#1123)
Browse files Browse the repository at this point in the history
* fix(app): update footer links

* fix(app): add ff for onboard flow
  • Loading branch information
Tim Schultz authored Apr 18, 2023
1 parent 683b5ad commit 9a4e047
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
20 changes: 13 additions & 7 deletions app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,20 @@ export const Footer = ({ lightMode }: FooterProps): JSX.Element => {
Ceramic.
</a>
</div>
<a href="/" target="_blank" rel="noopener noreferrer" className="col-span-4 hover:underline">
<a
href="https://support.gitcoin.co/gitcoin-knowledge-base/gitcoin-passport/what-is-gitcoin-passport"
target="_blank"
rel="noopener noreferrer"
className="col-span-4 hover:underline"
>
Learn More
</a>
<a href="/" target="_blank" rel="noopener noreferrer" className="col-span-4 hover:underline">
<a
href="https://scorer.gitcoin.co/"
target="_blank"
rel="noopener noreferrer"
className="col-span-4 hover:underline"
>
Gitcoin Passport Scorer
</a>
<a
Expand All @@ -38,11 +48,7 @@ export const Footer = ({ lightMode }: FooterProps): JSX.Element => {
<a href="https://github.com/gitcoinco/passport" target="_blank" rel="noopener noreferrer" className="mr-8">
<img src={lightMode ? "./assets/githubLogoLight.svg" : "./assets/githubLogoDark.svg"} alt="Github Logo" />
</a>
<a
href="https://docs.passport.gitcoin.co/gitcoin-passport-sdk/getting-started"
target="_blank"
rel="noopener noreferrer"
>
<a href="https://docs.passport.gitcoin.co" target="_blank" rel="noopener noreferrer">
<img src={lightMode ? "./assets/docsIconLight.svg" : "./assets/docsIconDark.svg"} alt="Docs Icon" />
</a>
</div>
Expand Down
6 changes: 5 additions & 1 deletion app/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export default function Home() {
// Route user to dashboard when wallet is connected
useEffect(() => {
if (wallet) {
navigate("/welcome");
if (process.env.NEXT_PUBLIC_FF_ONE_CLICK_VERIFICATION === "on") {
navigate("/welcome");
} else {
navigate("/dashboard");
}
}
}, [wallet]);

Expand Down

0 comments on commit 9a4e047

Please sign in to comment.