-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #288 from sunrise-stake/develop
Referral UI
- Loading branch information
Showing
48 changed files
with
1,706 additions
and
607 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
|
||
env: | ||
solana_version: stable | ||
solana_version: v1.14.17 | ||
VERBOSE: 1 | ||
|
||
jobs: | ||
|
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,24 @@ | ||
import { Link, type LinkProps, useLocation } from "react-router-dom"; | ||
import { type FC, type PropsWithChildren } from "react"; | ||
|
||
export const LinkWithQuery: FC<PropsWithChildren & LinkProps> = ({ | ||
children, | ||
to, | ||
...props | ||
}) => { | ||
const { search } = useLocation(); | ||
|
||
const linkParams = typeof to === "string" ? { pathname: to } : to; | ||
|
||
return ( | ||
<Link | ||
to={{ | ||
...linkParams, | ||
search, | ||
}} | ||
{...props} | ||
> | ||
{children} | ||
</Link> | ||
); | ||
}; |
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,23 @@ | ||
import React, { type FC } from "react"; | ||
import { useScript } from "../hooks"; | ||
|
||
export const Tweet: FC<{ | ||
tweet: string; | ||
url?: string; | ||
size?: "small" | "medium" | "large"; | ||
}> = ({ tweet, url, size = "large" }) => { | ||
useScript("https://platform.x.com/widgets.js"); | ||
return ( | ||
<a | ||
href="https://twitter.com/share?ref_src=twsrc%5Etfw" | ||
className="twitter-share-button" | ||
data-size={size} | ||
data-text={tweet} | ||
data-url={url} | ||
data-related="sunrisestake" | ||
data-show-count="false" | ||
> | ||
Tweet | ||
</a> | ||
); | ||
}; |
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,52 @@ | ||
import { type FC, type PropsWithChildren, type ReactNode } from "react"; | ||
import clx from "classnames"; | ||
|
||
interface CardProps { | ||
className?: string; | ||
title?: string | ReactNode; | ||
image?: ReactNode; | ||
orientation?: "horizontal" | "vertical"; | ||
size?: "small" | "medium" | "large"; | ||
} | ||
|
||
export const Card: FC<PropsWithChildren & CardProps> = ({ | ||
children, | ||
className, | ||
image, | ||
title, | ||
orientation = "vertical", | ||
size = "medium", | ||
}) => ( | ||
<div | ||
className={clx( | ||
orientation === "horizontal" && "card-side", | ||
size === "small" | ||
? "w-32 sm:h-32 p-2" | ||
: size === "medium" | ||
? "w-40 sm:w-48 h-40 sm:h-48 p-4" | ||
: "w-128 h-128 p-4", | ||
"card glass", | ||
className | ||
)} | ||
> | ||
{image !== undefined && <figure className="min-h-2/3">{image}</figure>} | ||
<div | ||
className={clx( | ||
"card-body items-center content-center", | ||
size === "small" ? "p-1" : size === "medium" ? "p-1" : "p-0 sm:p-3" | ||
)} | ||
> | ||
{title !== undefined && ( | ||
<h2 | ||
className={clx( | ||
"card-title text-center", | ||
size === "small" ? "!text-sm" : "!text-sm sm:!text-xl" | ||
)} | ||
> | ||
{title} | ||
</h2> | ||
)} | ||
{children} | ||
</div> | ||
</div> | ||
); |
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
Oops, something went wrong.
3f1b20a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
app – ./
app-git-main-sunrise-stake.vercel.app
app-sunrise-stake.vercel.app
app.sunrisestake.com