Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvements: Add Home, remove Jedi #159

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,24 @@ export default function Navbar(props: NavbarProps) {
</Button>
</Link> */}

<Link href="/" margin="0">
<Button
bg="transparent"
color="color2"
variant="outline"
border="none"
padding={'0'}
_hover={{
bg: 'color2_50p',
}}
display={{ base: 'none !important', md: 'flex !important' }}
onClick={() => {
mixpanel.track('home_clicked');
}}
>
Home
</Button>
</Link>
<Link href="/community" margin="0 10px 0 0">
<Button
bg="transparent"
Expand Down
9 changes: 9 additions & 0 deletions src/components/TncModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,15 @@ const TncModal: React.FC<TncModalProps> = (props) => {
color="white"
target="_blank"
_hover={{ textDecor: 'underline' }}
autoFocus={false}
_focus={{
boxShadow: 'none',
outline: 'none',
}}
_focusVisible={{
boxShadow: 'none',
outline: 'none',
}}
>
T&C Document link <ExternalLinkIcon />
</Text>
Expand Down
2 changes: 1 addition & 1 deletion src/store/jedi.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const PairInfo: any = {

export class Jediswap extends IDapp<string> {
name = 'Jediswap (v1)';
link = 'https://app.jediswap.xyz/#/pool';
link = 'https://app.v1.jediswap.xyz/#/pool';
logo = 'https://app.jediswap.xyz/favicon/favicon-32x32.png';
incentiveDataKey = 'Jediswap_v1';
_computePoolsInfo(data: any) {
Expand Down
11 changes: 5 additions & 6 deletions src/store/protocols.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import EkuboAtoms, { ekubo } from './ekobu.store';
import HaikoAtoms, { haiko } from './haiko.store';
import HashstackAtoms, { hashstack } from './hashstack.store';
import JediAtoms, { jedi } from './jedi.store';
import MySwapAtoms, { mySwap } from './myswap.store';
import NostraDexAtoms, { nostraDex } from './nostradex.store';
import NostraDegenAtoms, { nostraDegen } from './nostradegen.store';
Expand Down Expand Up @@ -29,11 +28,11 @@ export const PROTOCOLS = [
class: ekubo,
atoms: EkuboAtoms,
},
{
name: jedi.name,
class: jedi,
atoms: JediAtoms,
},
// {
// name: jedi.name,
// class: jedi,
// atoms: JediAtoms,
// },
{
name: mySwap.name,
class: mySwap,
Expand Down
Loading