Skip to content
This repository was archived by the owner on Oct 27, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/profile/my-network-settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import GovernanceSettings from "./governance-settings";
import LogoAndColoursSettings from "./logo-and-colours-settings";
import RegistrySettings from "./registry-settings";
import RepositoriesListSettings from "./repositories-list-settings";
import WarningGithub from "./warning-github";

interface MyNetworkSettingsProps {
network: Network;
Expand Down Expand Up @@ -292,6 +293,7 @@ export default function MyNetworkSettings({
{isCurrentNetwork && (
<style>{colorsToCSS(settings?.theme?.colors)}</style>
)}
{!state.currentUser?.login && <WarningGithub />}
<TabbedNavigation
className="my-network-tabs border border-dark-gray"
defaultActiveKey="logo-and-colours"
Expand Down
17 changes: 17 additions & 0 deletions components/profile/my-network-settings/warning-github.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { Row } from "react-bootstrap";

import { useTranslation } from "next-i18next";

import ConnectGithub from "components/connect-github";
import { WarningSpan } from "components/warning-span";

export default function WarningGithub() {
const { t } = useTranslation(["custom-network"]);

return (
<Row className="mb-3">
<WarningSpan text={t("warning-connect-github")} />
<ConnectGithub />
</Row>
);
}
1 change: 1 addition & 0 deletions public/locales/en/custom-network.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"network-address": "Network Address",
"add-tokens": "Add Tokens",
"remove-tokens": "Remove Tokens",
"warning-connect-github": "Github account is required for changes to my network page",
"hero": {
"title": "Networks",
"explanatory-text": "A list of all the networks using BEPRO network for their development",
Expand Down