Skip to content

Commit

Permalink
#5 Begin styling MetadataEditView
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Jul 31, 2020
1 parent 48cb2df commit ed73743
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/components/MetadataEditView/MetadataEditView.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import MetadataRow from '../_library/MetadataRow';
import Fieldset from '../_library/Fieldset';
import LoadingIndicator from '../LoadingIndicator';
import NodeSidebar from '../NodeSidebar';
import Errors from '../Errors';
import { LoadingContainer } from '../LoadingIndicator/styles';
import { Container, Content, ScrollContainer } from './styles';
Expand All @@ -20,16 +19,13 @@ DefaultValueComponent.propTypes = {
const MetadataEditView = ({
data,
isLoading,
id,
itemType,
errors,
}) => (
<Container>
<Errors errors={errors} />
<LoadingContainer isLoading={isLoading}>
<LoadingIndicator />
</LoadingContainer>
<NodeSidebar id={id} itemType={itemType} />
<ScrollContainer>
<Content>
{data.map(({ values, groupLabel }) => (
Expand Down
4 changes: 2 additions & 2 deletions src/components/MetadataEditView/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export const Container = styled.div`
`;

export const ScrollContainer = styled.div`
padding-top: 3.5rem;
padding-top: 1rem;
height: calc(100vh - 7rem);
overflow-y: auto;
width: calc(100vw - 25rem);
width: calc(100vw);
`;

export const Content = styled.div`
Expand Down
2 changes: 0 additions & 2 deletions src/pages/documentMetadataEdit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ import React from 'react';
import PropTypes from 'prop-types';
import MetadataEditView from '../../components/MetadataEditView';
import Header from '../../components/Header';
import NodeHeader from '../../components/NodeHeader';

const DocumentMetadataEditPage = ({ match }) => (
<>
<Header />
<NodeHeader id={match.params.id} itemType="document" />
<MetadataEditView id={match.params.id} itemType="document" />
</>
);
Expand Down

0 comments on commit ed73743

Please sign in to comment.