summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/projects
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-13 13:00:00 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-17 17:06:49 +0200
commit24147cba0f5723be3525e8f40d1954144841629b (patch)
treed44727504f7a9c579219616cbdba5e965543561a /opendc-web/opendc-web-ui/src/components/projects
parent4397a959e806bf476be4c81bc804616adf58b969 (diff)
ui: Address technical dept in frontend
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/projects')
-rw-r--r--opendc-web/opendc-web-ui/src/components/projects/ProjectAuthList.js4
-rw-r--r--opendc-web/opendc-web-ui/src/components/projects/ProjectAuthRow.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthList.js b/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthList.js
index 8eb4f93b..15147e08 100644
--- a/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthList.js
+++ b/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthList.js
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types'
import React from 'react'
-import Shapes from '../../shapes/index'
+import { Authorization } from '../../shapes'
import ProjectAuthRow from './ProjectAuthRow'
const ProjectAuthList = ({ authorizations }) => {
@@ -33,7 +33,7 @@ const ProjectAuthList = ({ authorizations }) => {
}
ProjectAuthList.propTypes = {
- authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired,
+ authorizations: PropTypes.arrayOf(Authorization).isRequired,
}
export default ProjectAuthList
diff --git a/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthRow.js b/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthRow.js
index 3f904061..1c1d5cd8 100644
--- a/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthRow.js
+++ b/opendc-web/opendc-web-ui/src/components/projects/ProjectAuthRow.js
@@ -1,7 +1,7 @@
import classNames from 'classnames'
import React from 'react'
import ProjectActions from '../../containers/projects/ProjectActions'
-import Shapes from '../../shapes/index'
+import { Authorization } from '../../shapes/index'
import { AUTH_DESCRIPTION_MAP, AUTH_ICON_MAP } from '../../util/authorizations'
import { parseAndFormatDateTime } from '../../util/date-time'
@@ -18,7 +18,7 @@ const ProjectAuthRow = ({ projectAuth }) => (
)
ProjectAuthRow.propTypes = {
- projectAuth: Shapes.Authorization.isRequired,
+ projectAuth: Authorization.isRequired,
}
export default ProjectAuthRow