Skip to content

Commit

Permalink
Merge pull request #343 from darwinia-network/docs_link_updates
Browse files Browse the repository at this point in the history
docs links updates
  • Loading branch information
1022ranji authored May 6, 2023
2 parents 3283dce + 9c65be2 commit d87c926
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/components/Navigation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Navigation = () => {
const [mobileMenuHeightByPathMap, setMenuHeight] = useState<SubMenuHeight>({});
const [openedPCMenuPath, setOpenedPCMenuPath] = useState<string | undefined>(undefined);
const [navBarBackground, setNavBarBackground] = useState("rgba(0,0,0,0)");
const startBuildingURL = "https://docs.darwinia.network/builder-4003de8942774fffb25726e32be3b27e";
const startBuildingURL = "https://docs.darwinia.network/builder-0f142bfb7f6b41d78548fca21531a03d";
const navBarThreshold = 100;
/* this is temporary code, will be deleted very soon */
const [isTooltipVisible, setTooltipStatus] = useState(false);
Expand Down
6 changes: 3 additions & 3 deletions src/data/community.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const getInvolved = (t: TFunction<"translation">): FeatureWrapper => {
links: [
{
isExternal: true,
url: "https://medium.com/darwinianetwork/using-darwinia-tools-3-9-darwinia-apps-guide-part-ⅱ-staking-and-earning-7cd586315f76",
url: "https://darwinia.notion.site/Staking-56cd5e14439b4c9789f1cf63edd1d9d7",
title: t(localeKeys.startStake),
},
],
Expand All @@ -105,8 +105,8 @@ const getInvolved = (t: TFunction<"translation">): FeatureWrapper => {
links: [
{
isExternal: true,
url: "https://medium.com/darwinianetwork/using-darwinia-tools-3-11-darwinia-apps-guide-part-iv-how-to-become-a-validator-5f1503f8dd77",
title: t(localeKeys.runValidator),
url: "https://docs.darwinia.network/how-to-become-a-collator-af6bce360d5b49ddacc56e4587510210",
title: t(localeKeys.runCollator),
},
],
},
Expand Down
6 changes: 3 additions & 3 deletions src/data/developers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ const getDarwiniaDevRoadmap = (t: TFunction<"translation">): FeatureWrapper => {
links: [
{
isExternal: true,
url: "https://darwinia.notion.site/Getting-Started-with-MetaMask-7e62c6c12f884e868110461b956b4f40",
url: "https://docs.darwinia.network/getting-started-with-metamask-7e62c6c12f884e868110461b956b4f40",
title: `${t(localeKeys.gettingStartedWithMetaMask)} >`,
},
{
isExternal: true,
url: "https://darwinia.notion.site/Create-A-Simple-Dapp-8e274497e45e41b981dbd7bf040f70d8",
url: "https://docs.darwinia.network/create-a-simple-dapp-8e274497e45e41b981dbd7bf040f70d8",
title: `${t(localeKeys.createASimpleDapp)} >`,
},
{
isExternal: true,
url: "https://darwinia.notion.site/Ethereum-Darwinia-Parachain-723500992ab44562ba11b2a79553da23",
url: "https://docs.darwinia.network/ethereum-lessgreater-darwinia-lessgreater-parachain-723500992ab44562ba11b2a79553da23",
title: `${t(localeKeys.ethereumDarwiniaParachain)} >`,
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/data/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const getFooterData = (t: TFunction<"translation">): Footer => {
links: [
{
isExternal: true,
url: "https://docs.darwinia.network/builder-4003de8942774fffb25726e32be3b27e",
url: "https://docs.darwinia.network/builder-0f142bfb7f6b41d78548fca21531a03d",
title: t(localeKeys.developerDocs),
},
{
Expand Down Expand Up @@ -119,7 +119,7 @@ const getFooterData = (t: TFunction<"translation">): Footer => {
},
{
isExternal: true,
url: "https://darwinia.notion.site/About-Darwinia-Network-0072ca5fd23e41229fe111ccf96a87dc",
url: "https://darwinia.notion.site/Brand-Assets-9bd35f88f0674232954737577616f2c2",
title: t(localeKeys.brand),
},
],
Expand Down
12 changes: 6 additions & 6 deletions src/data/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const getDarwiniaRecommendation = (t: TFunction<"translation">): DarwiniaPromo =
links: [
{
title: t(localeKeys.sdkDoc),
url: "https://docs.darwinia.network/solidity-sdk-85a817534fad4d8e80a0a79c10cd1d99",
url: "https://docs.darwinia.network/solidity-sdk-ac0f639b18094a4caeb1b39714f406b9",
isExternal: true,
},
{
Expand Down Expand Up @@ -208,12 +208,12 @@ const getDarwiniaPower = (t: TFunction<"translation">): FeatureWrapper => {
links: [
{
title: t(localeKeys.startStake),
url: "https://medium.com/darwinianetwork/using-darwinia-tools-3-9-darwinia-apps-guide-part-ⅱ-staking-and-earning-7cd586315f76",
url: "https://darwinia.notion.site/Staking-56cd5e14439b4c9789f1cf63edd1d9d7",
isExternal: true,
},
{
title: t(localeKeys.runValidator),
url: "https://medium.com/darwinianetwork/using-darwinia-tools-3-11-darwinia-apps-guide-part-iv-how-to-become-a-validator-5f1503f8dd77",
title: t(localeKeys.runCollator),
url: "https://docs.darwinia.network/how-to-become-a-collator-af6bce360d5b49ddacc56e4587510210",
isExternal: true,
},
],
Expand All @@ -226,7 +226,7 @@ const getDarwiniaPower = (t: TFunction<"translation">): FeatureWrapper => {
links: [
{
title: t(localeKeys.sdkDoc),
url: "https://docs.darwinia.network/solidity-sdk-85a817534fad4d8e80a0a79c10cd1d99",
url: "https://docs.darwinia.network/solidity-sdk-ac0f639b18094a4caeb1b39714f406b9",
isExternal: true,
},
{
Expand Down Expand Up @@ -259,7 +259,7 @@ const getCodeSamples = (t: TFunction<"translation">): CodeSample => {
{
isExternal: true,
title: t(localeKeys.sdkDoc),
url: "https://docs.darwinia.network/solidity-sdk-85a817534fad4d8e80a0a79c10cd1d99",
url: "https://docs.darwinia.network/solidity-sdk-ac0f639b18094a4caeb1b39714f406b9",
},
{
isExternal: true,
Expand Down
2 changes: 1 addition & 1 deletion src/data/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const getMenu = (t: TFunction<"translation">): Menu[] => {
},
{
title: t(localeKeys.support),
path: "https://darwinia.notion.site/Darwinia-Support-c9412ead803542f197ba1ccafb72c427",
path: "https://darwinia.notion.site/a76d5bdc7ad242bea991c023dfca208f?v=5fb127fc9a7a4d67a3bbc3ed50445180",
isExternalLink: true,
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/data/tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const getHero = (t: TFunction<"translation">): Hero => {
links: [
{
title: t(localeKeys.howToStake),
url: "https://medium.com/darwinianetwork/using-darwinia-tools-3-9-darwinia-apps-guide-part-ⅱ-staking-and-earning-7cd586315f76",
url: "https://darwinia.notion.site/Staking-56cd5e14439b4c9789f1cf63edd1d9d7",
isExternal: true,
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/locale/localeKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const localeKeys = {
integration: "integration",
integrationIntro: "integrationIntro",
startStake: "startStake",
runValidator: "runValidator",
runCollator: "runCollator",
sdkDoc: "sdkDoc",
contactUs: "contactUs",
talkToExpert: "talkToExpert",
Expand Down
2 changes: 1 addition & 1 deletion src/locale/translations/enUS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const enUs = {
[localeKeys.integration]: `Integration`,
[localeKeys.integrationIntro]: `Support teams and developers that want to integrate with and connect to Darwinia Network.`,
[localeKeys.startStake]: `Start To Stake >`,
[localeKeys.runValidator]: `Run A Validator >`,
[localeKeys.runCollator]: `Run A Collator >`,
[localeKeys.sdkDoc]: `SDK Doc >`,
[localeKeys.contactUs]: `Contact Us >`,
[localeKeys.talkToExpert]: `Talk to An Expert >`,
Expand Down

0 comments on commit d87c926

Please sign in to comment.