Skip to content

Commit

Permalink
Merge pull request #1010 from oraichain/fix-export-csv
Browse files Browse the repository at this point in the history
Fix export csv
  • Loading branch information
haunv3 authored Feb 18, 2025
2 parents e6ffba2 + 076d39c commit e883529
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
13 changes: 5 additions & 8 deletions src/components/Footer/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ const Footer = memo(() => {
Mainnet
</a>
</li>
<li className={cx("nav-item")}>
<a className={cx("nav-link")} href='https://agents.land/' target='_blank'>
Agents.Land
</a>
</li>
<li className={cx("nav-item")}>
<a className={cx("nav-link")} href='https://cupiee.com/' target='_blank'>
Cupiee
Expand Down Expand Up @@ -135,14 +140,6 @@ const Footer = memo(() => {
Kawaiiverse
</a>
</li>

<li className={cx("nav-item")}>

<a className={cx("nav-link")} href='https://kawaii.global/' target='_blank'>
Kawaiiverse
</a>
</li>

<li className={cx("nav-item")}>
<a className={cx("nav-link")} href='https://docs.orai.io/readme/tokenomics' target='_blank'>
Other DApps
Expand Down
17 changes: 6 additions & 11 deletions src/components/Header/NavBar/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ const initialNavLinks = [
{
name: "DEX & DEFI",
list: [
{
title: "Agents.Land",
link: "https://agents.land",
icon: null,
target: "_blank",
},
{
title: "OraiDEX",
link: "https://oraidex.io",
Expand Down Expand Up @@ -259,17 +265,6 @@ const initialNavLinks = [
},
],
},
{
name: "GAMEFI",
list: [
{
title: "Kawaii Islands",
link: "https://kawaii.global",
icon: null,
target: "_blank",
},
],
},
{
name: "NFT",
list: [
Expand Down
22 changes: 18 additions & 4 deletions src/containers/ExportData/ExportData.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ExportData = props => {
const params = useParams();
const location = useLocation();
const account = params?.["account"];
const [disabledSubmit, setDisabledSubmit] = useState(true);
const [disabledSubmit, setDisabledSubmit] = useState(false);

const searchParams = new URLSearchParams(location.search);
const type = searchParams.get("type");
Expand Down Expand Up @@ -110,7 +110,7 @@ const ExportData = props => {
<CalendarIcon className={cx("calendar-icon")} />
</div>
</div>
<div className={cx("captcha-wrapper")}>
{/* <div className={cx("captcha-wrapper")}>
<ReCaptcha
size='normal'
data-theme='dark'
Expand All @@ -121,10 +121,24 @@ const ExportData = props => {
setDisabledSubmit(false);
}}
/>
</div>
</div> */}
<>
<div className={cx("random")}>
<button className={cx("button-random", disabledSubmit && "button-random-disabled")} onClick={disabledSubmit || download}>
<button
disabled={disabledSubmit}
className={cx("button-random", disabledSubmit && "button-random-disabled")}
onClick={async () => {
setDisabledSubmit(true);
try {
await download();
} catch (error) {
console.log({ error });
} finally {
setTimeout(() => {
setDisabledSubmit(false);
}, 3000);
}
}}>
Download
</button>
</div>
Expand Down

0 comments on commit e883529

Please sign in to comment.