Skip to content

Commit

Permalink
Merge pull request #103 from provenance-io/aj/update-deps
Browse files Browse the repository at this point in the history
aj/update deps
  • Loading branch information
webbushka authored Dec 11, 2023
2 parents 1f05981 + 72dc2c4 commit b39e6c8
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
22 changes: 22 additions & 0 deletions docs/components/Redirect.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { useEffect, useState } from 'react';

export const Redirect = ({ to }) => {
const [time, setTime] = useState(5);

useEffect(() => {
if (time < 1) window.location = to;
else
setTimeout(() => {
setTime((t) => t - 1);
}, 1000);
}, [time]);

return (
<div>
<p className="text-lg">
This page has moved to <a href={to}>{to}</a>
</p>
<p className="my-4">The page will auto redirect in {time}</p>
</div>
);
};

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Token Economics

import { Redirect } from '/docs/components/Redirect';

<Redirect to="https://provenance.io/ecosystem/HASH/tokenomics/" />

0 comments on commit b39e6c8

Please sign in to comment.