Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
refactor(*): remove CustomStylesWrapper - i320
Browse files Browse the repository at this point in the history
Signed-off-by: Lenvin Gonsalves <[email protected]>
  • Loading branch information
98lenvi committed May 5, 2020
1 parent 184a711 commit 06bf8ce
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 85 deletions.
24 changes: 0 additions & 24 deletions src/ErrorLogger/customStyles.js

This file was deleted.

7 changes: 2 additions & 5 deletions src/ErrorLogger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import * as SC from './styles';
/* Component */
import ErrorComponent from './Error';

/** classNames exposed for user-defined styling */
import {CustomStylesWrapper} from './customStyles';

const ErrorLogger = (props) => {
const { errors, errorNav } = props;
const errorLength = Object.keys(errors).length ? Object.keys(errors).length : 0;
Expand Down Expand Up @@ -51,7 +48,7 @@ const ErrorLogger = (props) => {
key={ACT.keySwitchCase(errorValue)} />);

return (
<CustomStylesWrapper>
<div>
{errorsVisible
&& <SC.ErrorDisplay {...displayProps} className='errorDisplay'>
{errorComponentGenerator(errors)}
Expand All @@ -63,7 +60,7 @@ const ErrorLogger = (props) => {
{ACT.errorArrayLength(errors)} {ACT.isMultipleErrors(errors)}
<SC.ErrorBarArrow {...barArrowProps} className='errorBarArrow'/>
</SC.ErrorsHeader>
</CustomStylesWrapper>
</div>
);
};

Expand Down
18 changes: 0 additions & 18 deletions src/Navigation/customStyles.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/Navigation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import ContractNavigation from './Contract';
import FilesNavigation from './Files';
import ComponentSwitch from './ComponentSwitch';

/** classNames exposed for user-defined styling */
import {CustomStylesWrapper} from './customStyles';

/**
* Represents the overall navigation wrapper, consisting of
* two separate components, navigating between headers of the
Expand Down Expand Up @@ -50,12 +47,10 @@ const NavigationComponent = (props) => {
};

return (
<CustomStylesWrapper>
<NavigationWrapper {...navigationWrapperProps} >
<ComponentSwitch {...switchProps} />
{navigationGenerator(props)}
</NavigationWrapper>
</CustomStylesWrapper>
);
};

Expand Down
28 changes: 0 additions & 28 deletions src/TemplateLibrary/customStyles.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/TemplateLibrary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import isQueryMatch from '../utilities/isQueryMatch';
import TemplateCard from './Components/TemplateCard';
import { ImportComponent, UploadComponent, NewClauseComponent } from './Buttons';

/** classNames exposed for user-defined styling */
import {CustomStylesWrapper} from './customStyles';

const TemplatesWrapper = styled.div`
font-family: 'IBM Plex Sans', sans-serif;
position: relative;
Expand Down Expand Up @@ -124,7 +121,6 @@ const TemplateLibraryComponent = (props) => {
const filtered = filterTemplates(props.templates);

return (
<CustomStylesWrapper>
<TemplatesWrapper>
<Header>
<HeaderTitle className='templateListTitle' >Clause Templates</HeaderTitle>
Expand Down Expand Up @@ -152,7 +148,6 @@ const TemplateLibraryComponent = (props) => {
))}
</TemplateCards> : <p style={{ textAlign: 'center' }}>No results found</p>}
</TemplatesWrapper>
</CustomStylesWrapper>
);
};

Expand Down

0 comments on commit 06bf8ce

Please sign in to comment.