Skip to content

Commit

Permalink
Merge branch 'main' of github.com:fluencelabs/dao
Browse files Browse the repository at this point in the history
  • Loading branch information
elshan-eth committed Feb 27, 2024
2 parents aab503a + 0656d84 commit 26090e0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 14 additions & 2 deletions web/src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.dev/docs/learn/overview"
target="_blank"
>
Overview
</Link>
Expand All @@ -30,6 +31,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://www.youtube.com/@fluencelabs/videos"
target="_blank"
>
Videos
</Link>
Expand All @@ -40,6 +42,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.dev/docs/build/introduction"
target="_blank"
>
Docs
</Link>
Expand All @@ -48,14 +51,16 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.dev/docs/build/get-started"
target="_blank"
>
Get Started
</Link>
</li>
<li className={`${styles.footer__item}`}>
<Link
className={styles.footer__link}
to="https://fluence.dev/docs/build/introduction"
to="https://github.com/fluencelabs"
target="_blank"
>
Github
</Link>
Expand All @@ -69,6 +74,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.network/governance"
target="_blank"
>
DAO{" "}
</Link>
Expand All @@ -82,6 +88,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://t.me/fluence_project"
target="_blank"
>
Telegram
</Link>
Expand All @@ -92,6 +99,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.chat"
target="_blank"
>
Discord
</Link>
Expand All @@ -102,6 +110,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://gov.fluence.network/"
target="_blank"
>
Forum
</Link>
Expand All @@ -117,6 +126,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://fluence.chat/"
target="_blank"
>
<img
src={discord}
Expand All @@ -131,6 +141,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://twitter.com/fluence_project"
target="_blank"
>
<img
src={twitter}
Expand All @@ -145,6 +156,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://t.me/fluence_project"
target="_blank"
>
<img
src={telegram}
Expand All @@ -159,6 +171,7 @@ const Footer = () => {
<Link
className={styles.footer__link}
to="https://www.youtube.com/@fluencelabs/videos"
target="_blank"
>
<img
src={youtube}
Expand All @@ -172,7 +185,6 @@ const Footer = () => {
</div>
</div>
</div>
<div className={styles.footer__corner} />
</footer>
);
};
Expand Down
5 changes: 5 additions & 0 deletions web/src/context/web3Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ export const Web3ContextProvider = ({ children }) => {
const networkData = supportedChains.find(
(chain) => chain.network_id === Number(modal.networkVersion),
);
if (networkData === undefined) {
alert("Connecting to the wrong network. Supported networks: " + supportedChains.map(c => c.network).join(','));
return;
}

const web3Provider = new providers.Web3Provider(
await web3Modal.connect(),
{
Expand Down

0 comments on commit 26090e0

Please sign in to comment.