mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-24 14:15:55 -04:00
39 lines
1 KiB
TypeScript
39 lines
1 KiB
TypeScript
import { Box } from "@mui/material";
|
|
import ContactInfoBox from "./ContactInfoBox";
|
|
import DonateInfoBox from "./DonateInfoBox";
|
|
import DaemonControlBox from "./DaemonControlBox";
|
|
import SettingsBox from "./SettingsBox";
|
|
import ExportDataBox from "./ExportDataBox";
|
|
import DiscoveryBox from "./DiscoveryBox";
|
|
import MoneroPoolHealthBox from "./MoneroPoolHealthBox";
|
|
import { useLocation } from "react-router-dom";
|
|
import { useEffect } from "react";
|
|
|
|
export default function SettingsPage() {
|
|
const location = useLocation();
|
|
|
|
useEffect(() => {
|
|
if (location.hash) {
|
|
const element = document.getElementById(location.hash.slice(1));
|
|
element?.scrollIntoView({ behavior: "smooth" });
|
|
}
|
|
}, [location]);
|
|
|
|
return (
|
|
<Box
|
|
sx={{
|
|
display: "flex",
|
|
gap: 2,
|
|
flexDirection: "column",
|
|
paddingBottom: 2,
|
|
}}
|
|
>
|
|
<SettingsBox />
|
|
<DiscoveryBox />
|
|
<MoneroPoolHealthBox />
|
|
<ExportDataBox />
|
|
<DaemonControlBox />
|
|
<DonateInfoBox />
|
|
</Box>
|
|
);
|
|
}
|