-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to new landing page, add realms votes (#96)
- Loading branch information
1 parent
b1992bc
commit 7d6a153
Showing
34 changed files
with
1,810 additions
and
1,289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { TabPill } from "./TabPill"; | ||
import { useNetwork } from "../hooks/useNetwork"; | ||
|
||
export const NetworkSelector = ({ | ||
route = "/$network" | ||
}) => { | ||
const { network } = useNetwork(); | ||
|
||
return ( | ||
<div className="flex flex-col w-full"> | ||
<div className="flex flex-row justify-stretch space-x-2 md:space-x-6"> | ||
<TabPill | ||
active={network == "hnt"} | ||
name="HNT" | ||
href={route.replace("$network", "hnt")} | ||
icon="/helium.svg" | ||
/> | ||
<TabPill | ||
active={network == "mobile"} | ||
name="MOBILE" | ||
href={route.replace("$network", "mobile")} | ||
icon="/mobile.svg" | ||
/> | ||
<TabPill | ||
active={network == "iot"} | ||
name="IOT" | ||
href={route.replace("$network", "iot")} | ||
icon="/iot.svg" | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.