diff --git a/frontend/src/component/application/application-edit-component.js b/frontend/src/component/application/application-edit-component.js
index 220daddd51..0d90172a09 100644
--- a/frontend/src/component/application/application-edit-component.js
+++ b/frontend/src/component/application/application-edit-component.js
@@ -3,13 +3,13 @@ import React, { Component, PureComponent } from 'react';
import { Link } from 'react-router';
import {
- Grid, Cell,
+ Grid, Cell, Card, CardTitle, CardText, CardMenu,
List, ListItem, ListItemContent,
Textfield, Icon, ProgressBar,
Tabs, Tab,
Switch,
} from 'react-mdl';
-import { HeaderTitle, ExternalIconLink, shorten } from '../common';
+import { IconLink, shorten, styles as commonStyles } from '../common';
import { formatFullDateTime } from '../common/util';
class StatefulTextfield extends Component {
@@ -152,20 +152,25 @@ class ClientApplications extends PureComponent {
return (
-
-
- {appName}} subtitle={description}
- actions={url && Visit site}
- />
+
+
+ {appName}
+
+ {description &&
+ {description}
+ }
+ {url &&
+
+ }
+
+ this.setState({ activeTab: tabId })} ripple
+ tabBarProps={{ style: { width: '100%' } }} className="mdl-color--grey-100">
+ Details
+ Edit
+
- this.setState({ activeTab: tabId })} ripple>
- Details
- Edit
-
-
- {content}
- |
-
+ {content}
+
);
}
}
diff --git a/frontend/src/component/application/application-list-component.js b/frontend/src/component/application/application-list-component.js
index a5d8570d6a..70946e9c8d 100644
--- a/frontend/src/component/application/application-list-component.js
+++ b/frontend/src/component/application/application-list-component.js
@@ -1,6 +1,6 @@
import React, { Component } from 'react';
-import { ProgressBar, Grid, Cell } from 'react-mdl';
-import { AppsLinkList, HeaderTitle } from '../common';
+import { ProgressBar, Card } from 'react-mdl';
+import { AppsLinkList, HeaderTitle, styles as commonStyles } from '../common';
class ClientStrategies extends Component {
@@ -17,12 +17,9 @@ class ClientStrategies extends Component {
return ;
}
return (
-
-
-
-
- |
-
+
+
+
);
}
}
diff --git a/frontend/src/component/common/index.js b/frontend/src/component/common/index.js
index 2db289eda5..6ce0d0ac6d 100644
--- a/frontend/src/component/common/index.js
+++ b/frontend/src/component/common/index.js
@@ -14,12 +14,13 @@ export { styles };
export const shorten = (str, len = 50) => (str && str.length > len ? `${str.substring(0, len)}...` : str);
export const AppsLinkList = ({ apps }) => (
-
+
{apps.length > 0 && apps.map(({ appName, description = '-', icon = 'apps' }) => (
-
-
+
+
{appName}
+ {description}
@@ -99,19 +100,12 @@ export function getIcon (type) {
};
-export const IconLink = ({ icon, children, ...props }) => (
-
-
- {children}
+export const IconLink = ({ url, icon }) => (
+
+
);
-export const ExternalIconLink = ({ url, children }) => (
-
- {children}
-
-);
-
export const DropdownButton = ({ label, id }) => (