mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 18:55:09 +02:00
/tickets -> /stats
This commit is contained in:
parent
c1912bf248
commit
1c2c36a9d6
@ -11,15 +11,15 @@ const Home = (obj) => {
|
|||||||
const userstate = useSelector((state) => state.userstate);
|
const userstate = useSelector((state) => state.userstate);
|
||||||
const [redirectToGrafana, setRedirectToGrafana] = useState(false);
|
const [redirectToGrafana, setRedirectToGrafana] = useState(false);
|
||||||
const [redirectToLPT, setRedirectToLPT] = useState(false);
|
const [redirectToLPT, setRedirectToLPT] = useState(false);
|
||||||
const [redirectToTickets, setRedirectToTickets] = useState(false);
|
const [redirectToStats, setRedirectToStats] = useState(false);
|
||||||
if (redirectToGrafana) {
|
if (redirectToGrafana) {
|
||||||
return <Navigate push to="/orchestrator" />;
|
return <Navigate push to="/orchestrator" />;
|
||||||
}
|
}
|
||||||
if (redirectToLPT) {
|
if (redirectToLPT) {
|
||||||
return <Navigate push to="/livepeer" />;
|
return <Navigate push to="/livepeer" />;
|
||||||
}
|
}
|
||||||
if (redirectToTickets) {
|
if (redirectToStats) {
|
||||||
return <Navigate push to="/tickets" />;
|
return <Navigate push to="/stats" />;
|
||||||
}
|
}
|
||||||
// Get amount of unique IP's which have visited this website
|
// Get amount of unique IP's which have visited this website
|
||||||
var totalVisitorCount = 0;
|
var totalVisitorCount = 0;
|
||||||
@ -63,7 +63,7 @@ const Home = (obj) => {
|
|||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<button className="waveButton" onClick={() => {
|
<button className="waveButton" onClick={() => {
|
||||||
setRedirectToTickets(true);
|
setRedirectToStats(true);
|
||||||
}}>
|
}}>
|
||||||
<p>📈 Statistics 💰</p>
|
<p>📈 Statistics 💰</p>
|
||||||
</button>
|
</button>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user