Skip to content

Commit

Permalink
Adapt to port project "Nord JetBains" renaming
Browse files Browse the repository at this point in the history
Like documented in nordtheme/jetbrains#44, the
`nord-jetbrains-editor` project was renamed to `nord-jetbrains`.
Therefore the changes have been adapted for the ports docs, pages and
components.

Bound to nordtheme/jetbrains#44
Resolves GH-138
  • Loading branch information
arcticicestudio committed Apr 25, 2019
1 parent 819d325 commit b435e0e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import { usePortsMetadata } from "hooks";
import { emptyStateIllustrationStyles } from "../../../shared/styles";

/**
* The component that represents the hero section for the landing page of the "Nord JetBrains Editor" port project.
* The component that represents the hero section for the landing page of the "Nord JetBrains" port project.
*
* @author Arctic Ice Studio <development@arcticicestudio.com>
* @author Sven Greb <development@svengreb.de>
* @since 0.9.0
*/
export default function SectionHero() {
const portMetadata = usePortsMetadata();
const { gitHubRepositoryUrl } = portMetadata.find(port => port.name === "nord-jetbrains-editor");
const { gitHubRepositoryUrl } = portMetadata.find(port => port.name === "nord-jetbrains");

return (
<Section>
Expand All @@ -48,7 +48,7 @@ export default function SectionHero() {
<Link href={gitHubRepositoryUrl} target="_blank" variant="minimal">
repository on GitHub
</Link>{" "}
for information about Nord JetBrains Editor.
for information about Nord JetBrains.
</P>
</Content>
<WaveFooter />
Expand Down
4 changes: 2 additions & 2 deletions src/data/ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ const ports = [
searchTerms: ["implementation", "import", "java", "jdk", "jvm", "library", "openjdk", "oracle", "reference"]
},
{
name: "nord-jetbrains-editor",
projectName: "JetBrains Editor",
name: "nord-jetbrains",
projectName: "JetBrains",
logoComponent: JetBrains,
projectUrl: "https://www.jetbrains.com",
searchTerms: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
*/

import React from "react";
import { SectionHero } from "organisms/page/ports/jetbrains";

import { locationPropTypes } from "data/pages/shared/propTypes";
import BaseLayout from "layouts/core/BaseLayout";
import { SectionHero } from "organisms/page/ports/jetbrains-editor";

/**
* The component that represents the landing page of the "Nord JetBrains Editor" port project.
* The component that represents the landing page of the "Nord JetBrains" port project.
*
* @author Arctic Ice Studio <development@arcticicestudio.com>
* @author Sven Greb <development@svengreb.de>
* @since 0.9.0
*/
const JetBrainsEditor = ({ location: { pathname } }) => (
const JetBrains = ({ location: { pathname } }) => (
<BaseLayout pathName={pathname}>
<SectionHero />
</BaseLayout>
);

JetBrainsEditor.propTypes = locationPropTypes;
JetBrains.propTypes = locationPropTypes;

export default JetBrainsEditor;
export default JetBrains;

0 comments on commit b435e0e

Please sign in to comment.