diff --git a/src/components/containers/ExternalLinks.tsx b/src/components/containers/ExternalLinks.tsx new file mode 100644 index 0000000..d1fb596 --- /dev/null +++ b/src/components/containers/ExternalLinks.tsx @@ -0,0 +1,33 @@ +import MoreIcon from '../../icons/ui/MoreIcon'; +import DropdownContainer from '../containers/DropdownContainer'; + +export const ExternalLinks = () => { + const links = [ + { + name: 'Report an Issue', + url: 'https://github.com/CircleCI-Public/visual-config-editor/issues/new/choose', + }, + { + name: 'Contribute', + url: 'https://github.com/CircleCI-Public/visual-config-editor', + }, + ]; + return ( + + +
+ {links.map((link) => ( + + {link.name} + + ))} +
+
+ ); +}; diff --git a/src/components/containers/HeaderMenu.tsx b/src/components/containers/HeaderMenu.tsx new file mode 100644 index 0000000..c02722c --- /dev/null +++ b/src/components/containers/HeaderMenu.tsx @@ -0,0 +1,11 @@ +import { ExternalLinks } from "./ExternalLinks"; +import PreviewToolbox from "./PreviewToolbox"; + +export default function HeaderMenu() { + return ( +
+ + +
+ ); +} \ No newline at end of file diff --git a/src/components/containers/PreviewToolbox.tsx b/src/components/containers/PreviewToolbox.tsx index a03685f..16eb8e8 100644 --- a/src/components/containers/PreviewToolbox.tsx +++ b/src/components/containers/PreviewToolbox.tsx @@ -24,7 +24,6 @@ export default function PreviewToolbox() { return ( { diff --git a/src/components/containers/WorkflowContainer.tsx b/src/components/containers/WorkflowContainer.tsx index 11c4a1c..daf7b67 100644 --- a/src/components/containers/WorkflowContainer.tsx +++ b/src/components/containers/WorkflowContainer.tsx @@ -21,6 +21,8 @@ import ConnectionLine from '../atoms/ConnectionLine'; import Edge from '../atoms/Edge'; import { JobMapping } from '../../mappings/components/JobMapping'; import PreviewToolbox from './PreviewToolbox'; +import { ExternalLinks } from './ExternalLinks'; +import HeaderMenu from './HeaderMenu'; export interface ElementProps { className?: string; @@ -253,7 +255,7 @@ const WorkflowContainer = ({ bgClassName, className }: ElementProps) => { } }} > - + ( + + + +); + +export default MoreIcon;