-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: added title to Veolas for duplicate title error in SEMrush #135
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { Alert, Button, Card, Space, Typography } from 'antd'; | ||
import { useState } from 'react'; | ||
import styled from 'styled-components'; | ||
import { Alert, Button, Card, Space, Typography } from "antd"; | ||
import { useState } from "react"; | ||
import styled from "styled-components"; | ||
|
||
import { useFetchBalances } from 'hooks/index'; | ||
import { useFetchBalances } from "hooks/index"; | ||
|
||
import { CreateLockModal } from './CreateLockModal'; | ||
import { IncreaseLockModal } from './IncreaseLockModal'; | ||
import { VeOlasManage } from './VeOlasManage'; | ||
import { CreateLockModal } from "./CreateLockModal"; | ||
import { IncreaseLockModal } from "./IncreaseLockModal"; | ||
import { VeOlasManage } from "./VeOlasManage"; | ||
import { GetServerSideProps } from "next"; | ||
Check failure on line 10 in apps/govern/components/VeOlas/index.tsx GitHub Actions / build
|
||
import Head from "next/head"; | ||
|
||
const { Paragraph } = Typography; | ||
|
||
|
@@ -23,53 +25,64 @@ | |
`; | ||
|
||
export const VeOlasPage = () => { | ||
const { isLoading, canWithdrawVeolas, canIncreaseAmountOrUnlock } = useFetchBalances(); | ||
const { isLoading, canWithdrawVeolas, canIncreaseAmountOrUnlock } = | ||
useFetchBalances(); | ||
|
||
const [isCreateLockModalVisible, setIsCreateLockModalVisible] = useState(false); | ||
const [isCreateLockModalVisible, setIsCreateLockModalVisible] = | ||
useState(false); | ||
const [isIncreaseModalVisible, setIsIncreaseModalVisible] = useState(false); | ||
|
||
return ( | ||
<StyledMain> | ||
<Card> | ||
<Title>veOLAS</Title> | ||
<Paragraph type="secondary" className="mt-8 mb-24"> | ||
veOLAS gives you voting power in Olas governance. Lock OLAS for longer periods to get more | ||
veOLAS. | ||
</Paragraph> | ||
<Space size="middle" className="mb-16"> | ||
<Button | ||
type="primary" | ||
size="large" | ||
disabled={isLoading || !!canWithdrawVeolas} | ||
onClick={() => { | ||
// if the user has veolas, then show the modal to increase the amount | ||
// else show the modal to create a lock | ||
if (canIncreaseAmountOrUnlock) { | ||
setIsIncreaseModalVisible(true); | ||
} else { | ||
setIsCreateLockModalVisible(true); | ||
} | ||
}} | ||
> | ||
Lock OLAS for veOLAS | ||
</Button> | ||
<> | ||
<Head> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you please add the whole meta block to govern app similar to one that we have on olas website or contribute or in bond app here apps/bond/pages/_app.jsx? currently govern app is not searchable in google :( I probably forgot to add that when created the app |
||
<title>VeOlas</title> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or maybe |
||
</Head> | ||
<StyledMain> | ||
<Card> | ||
<Title>veOLAS</Title> | ||
<Paragraph type="secondary" className="mt-8 mb-24"> | ||
veOLAS gives you voting power in Olas governance. Lock OLAS for | ||
longer periods to get more veOLAS. | ||
</Paragraph> | ||
<Space size="middle" className="mb-16"> | ||
<Button | ||
type="primary" | ||
size="large" | ||
disabled={isLoading || !!canWithdrawVeolas} | ||
onClick={() => { | ||
// if the user has veolas, then show the modal to increase the amount | ||
// else show the modal to create a lock | ||
if (canIncreaseAmountOrUnlock) { | ||
setIsIncreaseModalVisible(true); | ||
} else { | ||
setIsCreateLockModalVisible(true); | ||
} | ||
}} | ||
> | ||
Lock OLAS for veOLAS | ||
</Button> | ||
|
||
{canWithdrawVeolas && ( | ||
<Alert message="Please claim your OLAS before locking again" type="warning" showIcon /> | ||
)} | ||
</Space> | ||
{canWithdrawVeolas && ( | ||
<Alert | ||
message="Please claim your OLAS before locking again" | ||
type="warning" | ||
showIcon | ||
/> | ||
)} | ||
</Space> | ||
|
||
<VeOlasManage /> | ||
<VeOlasManage /> | ||
|
||
<CreateLockModal | ||
isModalVisible={isCreateLockModalVisible} | ||
setIsModalVisible={setIsCreateLockModalVisible} | ||
/> | ||
<IncreaseLockModal | ||
isModalVisible={isIncreaseModalVisible} | ||
setIsModalVisible={setIsIncreaseModalVisible} | ||
/> | ||
</Card> | ||
</StyledMain> | ||
<CreateLockModal | ||
isModalVisible={isCreateLockModalVisible} | ||
setIsModalVisible={setIsCreateLockModalVisible} | ||
/> | ||
<IncreaseLockModal | ||
isModalVisible={isIncreaseModalVisible} | ||
setIsModalVisible={setIsIncreaseModalVisible} | ||
/> | ||
</Card> | ||
</StyledMain> | ||
</> | ||
); | ||
}; |
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.
your linter is not working 🥲