[ARVADOS-WORKBENCH2] updated: 1.1.4-294-g8686e6a
Git user
git at public.curoverse.com
Fri Jul 13 10:27:34 EDT 2018
Summary of changes:
src/components/context-menu/context-menu.tsx | 5 +++--
.../context-menu/project-item-set.ts | 26 ++++------------------
.../context-menu/root-project-item-set.ts | 3 ++-
3 files changed, 9 insertions(+), 25 deletions(-)
via 8686e6aa3ba0f53b524898f8ef3a7214561cc6a4 (commit)
from a781af5eae4f4e7f6e07a2b205ad4e54e9e8ec7a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 8686e6aa3ba0f53b524898f8ef3a7214561cc6a4
Author: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
Date: Fri Jul 13 16:27:16 2018 +0200
Make use of a new Icon component in ContextMenu
Feature #13805
Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski <michal.klobukowski at contractors.roche.com>
diff --git a/src/components/context-menu/context-menu.tsx b/src/components/context-menu/context-menu.tsx
index 49b6592..a7b83bc 100644
--- a/src/components/context-menu/context-menu.tsx
+++ b/src/components/context-menu/context-menu.tsx
@@ -4,10 +4,11 @@
import * as React from "react";
import { Popover, List, ListItem, ListItemIcon, ListItemText, Divider } from "@material-ui/core";
import { DefaultTransformOrigin } from "../popover/helpers";
+import IconBase, { IconTypes } from "../icon/icon";
export interface ContextMenuItem {
name: string;
- icon: string;
+ icon: IconTypes;
}
export type ContextMenuItemGroup = ContextMenuItem[];
@@ -38,7 +39,7 @@ export default class ContextMenu extends React.PureComponent<ContextMenuProps> {
key={actionIndex}
onClick={() => onItemClick(item)}>
<ListItemIcon>
- <i className={item.icon} />
+ <IconBase icon={item.icon} />
</ListItemIcon>
<ListItemText>
{item.name}
diff --git a/src/views-components/context-menu/project-item-set.ts b/src/views-components/context-menu/project-item-set.ts
index 583bbaa..e205339 100644
--- a/src/views-components/context-menu/project-item-set.ts
+++ b/src/views-components/context-menu/project-item-set.ts
@@ -5,6 +5,7 @@
import { ContextMenuItemGroup } from "../../components/context-menu/context-menu";
import { ContextMenuItemSet } from "./context-menu-item-set";
import actions from "../../store/project/project-action";
+import { IconTypes } from "../../components/icon/icon";
export const projectItemSet: ContextMenuItemSet = {
getItems: () => items,
@@ -16,28 +17,9 @@ export const projectItemSet: ContextMenuItemSet = {
};
const items: ContextMenuItemGroup[] = [[{
- icon: "fas fa-plus fa-fw",
+ icon: IconTypes.FOLDER,
name: "New project"
}, {
- icon: "fas fa-users fa-fw",
+ icon: IconTypes.ANNOUNCEMENT,
name: "Share"
-}, {
- icon: "fas fa-sign-out-alt fa-fw",
- name: "Move to"
-}, {
- icon: "fas fa-star fa-fw",
- name: "Add to favourite"
-}, {
- icon: "fas fa-edit fa-fw",
- name: "Rename"
-}, {
- icon: "fas fa-copy fa-fw",
- name: "Make a copy"
-}, {
- icon: "fas fa-download fa-fw",
- name: "Download"
-}], [{
- icon: "fas fa-trash-alt fa-fw",
- name: "Remove"
-}
-]];
\ No newline at end of file
+}]];
\ No newline at end of file
diff --git a/src/views-components/context-menu/root-project-item-set.ts b/src/views-components/context-menu/root-project-item-set.ts
index ae760f0..5106881 100644
--- a/src/views-components/context-menu/root-project-item-set.ts
+++ b/src/views-components/context-menu/root-project-item-set.ts
@@ -5,6 +5,7 @@
import { ContextMenuItemGroup } from "../../components/context-menu/context-menu";
import { ContextMenuItemSet } from "./context-menu-item-set";
import actions from "../../store/project/project-action";
+import { IconTypes } from "../../components/icon/icon";
export const rootProjectItemSet: ContextMenuItemSet = {
getItems: () => items,
@@ -16,6 +17,6 @@ export const rootProjectItemSet: ContextMenuItemSet = {
};
const items: ContextMenuItemGroup[] = [[{
- icon: "fas fa-plus fa-fw",
+ icon: IconTypes.FOLDER,
name: "New project"
}]];
\ No newline at end of file
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list