kopia lustrzana https://github.com/bugout-dev/moonstream
remove link from aws, use new hardcoded link
rodzic
f2c7053daf
commit
96ba2dc829
|
@ -8,15 +8,6 @@ const Navbar = React.lazy(() => import("../components/Navbar"));
|
||||||
const RootLayout = (props) => {
|
const RootLayout = (props) => {
|
||||||
const ui = useContext(UIContext);
|
const ui = useContext(UIContext);
|
||||||
const [showBanner, setShowBanner] = useState(true);
|
const [showBanner, setShowBanner] = useState(true);
|
||||||
const [discordURL, setDiscordURL] = useState();
|
|
||||||
|
|
||||||
let url =
|
|
||||||
"https://s3.amazonaws.com/static.simiotics.com/moonstream/discord_link.json";
|
|
||||||
|
|
||||||
fetch(url)
|
|
||||||
.then((res) => res.json())
|
|
||||||
.then((out) => setDiscordURL(out?.link))
|
|
||||||
.catch((err) => console.error(err));
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Flex
|
<Flex
|
||||||
|
@ -68,7 +59,11 @@ const RootLayout = (props) => {
|
||||||
>
|
>
|
||||||
Join early. Our first 1000 users get free lifetime access to
|
Join early. Our first 1000 users get free lifetime access to
|
||||||
blockchain analytics. Contact our team on{" "}
|
blockchain analytics. Contact our team on{" "}
|
||||||
<Link isExternal href={discordURL} color="orange.900">
|
<Link
|
||||||
|
isExternal
|
||||||
|
href={"https://discord.gg/K56VNUQGvA"}
|
||||||
|
color="orange.900"
|
||||||
|
>
|
||||||
Discord
|
Discord
|
||||||
</Link>
|
</Link>
|
||||||
</Text>
|
</Text>
|
||||||
|
|
Ładowanie…
Reference in New Issue