-
Notifications
You must be signed in to change notification settings - Fork 15
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 #254 from alleslabs/feat/public-data-github-link
feat: add github link to public code and contract
- Loading branch information
Showing
7 changed files
with
43 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Flex, Text } from "@chakra-ui/react"; | ||
|
||
import { CustomIcon } from "../icon"; | ||
import { AmpTrackSocial } from "lib/services/amplitude"; | ||
|
||
interface GitHubLinkProps { | ||
github: string; | ||
} | ||
|
||
export const GitHubLink = ({ github }: GitHubLinkProps) => { | ||
const [, , , org, repo] = github.split("/"); | ||
return ( | ||
<Flex gap={2}> | ||
<Text fontWeight={500} color="text.dark" variant="body2"> | ||
GitHub: | ||
</Text> | ||
<a | ||
href={github} | ||
onClick={() => AmpTrackSocial(github)} | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
style={{ display: "flex" }} | ||
> | ||
<Text color="lilac.main" variant="body2" wordBreak="break-all"> | ||
{org}/{repo} | ||
</Text> | ||
<CustomIcon name="external" boxSize="12px" marginLeft="8px" /> | ||
</a> | ||
</Flex> | ||
); | ||
}; |
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 @@ | ||
export * from "./GitHubLink"; |
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
f4a32bc
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:
terra-celatone-frontend-staging – ./
terra-celatone-frontend-staging-alleslabs.vercel.app
terra-staging.celat.one
terra-celatone-frontend-staging.vercel.app
terra-celatone-frontend-staging-git-develop-alleslabs.vercel.app
f4a32bc
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:
osmosis-celatone-frontend-staging – ./
osmosis-celatone-frontend-staging-git-develop-alleslabs.vercel.app
celatone-staging.osmosis.zone
celatone-frontend-staging.vercel.app
osmosis-staging.celat.one
osmosis-celatone-frontend-staging-alleslabs.vercel.app