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

Commit

Permalink
refactor(*): rename classNames - 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 b6eabe5 commit 3b7c7ea
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions src/ErrorLogger/Error.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ const ErrorComponent = (props) => {
};

return (
<SC.ErrorComponent className='errorComponent'>
<SC.ErrorComponent className='errorLoggerError'>

<SC.ArrowDiv {...errorArrowProps} className={specErrorVisible?'errorArrowDivExpanded':'errorArrowDivCollapsed'}/>
<SC.ErrorFile onClick={() => errorNav(error)} className='errorFile'>
<SC.ArrowDiv {...errorArrowProps} className={specErrorVisible?'errorLoggerErrorArrowExpanded':'errorLoggerErrorArrowCollapsed'}/>
<SC.ErrorFile onClick={() => errorNav(error)} className='errorLoggerError'>
{ACT.typeSwitchCase(error || {})}
</SC.ErrorFile>

<SC.ErrorType {...typeProps} className='errorType'>
<SC.ErrorType {...typeProps} className='errorLoggerErrorType'>
{ACT.overalltypeSwitchCase(error).name || 'Unknown Error'}:
</SC.ErrorType>

<SC.ErrorShortMessage {...shortMessageProps} className='errorShortMessage'>
<SC.ErrorShortMessage {...shortMessageProps} className='errorLoggerErrorShortMessage'>
{ACT.truncateMessage(ACT.overalltypeSwitchCase(error).shortMessage || 'Unknown Error')}
</SC.ErrorShortMessage>

{specErrorVisible
&& <SC.ErrorFullMessage {...fullMessageProps} className='errorFullMessage'>
&& <SC.ErrorFullMessage {...fullMessageProps} className='errorLoggerErrorFullMessage'>
{ACT.overalltypeSwitchCase(error).message || 'Unknown Error'}
</SC.ErrorFullMessage>}
</SC.ErrorComponent>
Expand Down
6 changes: 3 additions & 3 deletions src/ErrorLogger/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ const ErrorLogger = (props) => {
return (
<div className='ciceroUI'>
{errorsVisible
&& <SC.ErrorDisplay {...displayProps} className='errorDisplay'>
&& <SC.ErrorDisplay {...displayProps} className='errorLoggerDisplay'>
{errorComponentGenerator(errors)}
</SC.ErrorDisplay>
}
<SC.ErrorsHeader {...headerProps} className='errorHeader'>
<SC.ErrorsHeader {...headerProps} className='errorLoggerHeader'>
{ACT.gtZero(errorLength)
&& <SC.ErrorSymbol {...symbolProps} />}
{ACT.errorArrayLength(errors)} {ACT.isMultipleErrors(errors)}
<SC.ErrorBarArrow {...barArrowProps} className='errorBarArrow'/>
<SC.ErrorBarArrow {...barArrowProps} className='errorLoggerBarArrow'/>
</SC.ErrorsHeader>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions src/ErrorLogger/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const ErrorDisplay = styled.div`
box-shadow: 0 -2px 20px 0 rgba(20,31,60,0.65);
`;

ErrorDisplay.displayName = 'ErrorDisplay';
ErrorDisplay.displayName = 'errorLoggerDisplay';

export const ErrorsHeader = styled.div`
width: 100%;
Expand Down Expand Up @@ -63,7 +63,7 @@ export const ErrorBarArrow = styled.div`
? '0' : (`7px solid #7B9AD1`))};
`;

ErrorBarArrow.displayName = 'ErrorBarArrow';
ErrorBarArrow.displayName = 'errorLoggerBarArrow';

export const ErrorComponent = styled.div`
width: 100%;
Expand All @@ -79,7 +79,7 @@ export const ErrorComponent = styled.div`
grid-template-rows: min-content auto;
`;

ErrorComponent.displayName = 'ErrorComponent';
ErrorComponent.displayName = 'errorLoggerError';

export const ErrorFile = styled.a`
text-decoration: underline;
Expand Down Expand Up @@ -121,7 +121,7 @@ export const ErrorShortMessage = styled.div`
padding: 5px;
`;

ErrorShortMessage.displayName = 'ErrorShortMessage';
ErrorShortMessage.displayName = 'errorLoggerErrorShortMessage';

export const ErrorFullMessage = styled.div`
grid-area: errorFull;
Expand Down
4 changes: 2 additions & 2 deletions src/Navigation/ComponentSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const NavigationComponent = (props) => {

return (
<React.Fragment>
<SC.Navigation {...navigationProps} className={props.navState === 'NAVIGATION'?'navTitleActive':'navTitleInactive'}>
<SC.Navigation {...navigationProps} className={props.navState === 'NAVIGATION'?'navigationTitleActive':'navigationTitleInactive'}>
NAVIGATION
</SC.Navigation>
<SC.Files {...fileProps} className={props.navState === 'FILES'?'navTitleActive':'navTitleInactive'}>
<SC.Files {...fileProps} className={props.navState === 'FILES'?'navigationTitleActive':'navigationTitleInactive'}>
FILES
</SC.Files>
</React.Fragment>
Expand Down
8 changes: 4 additions & 4 deletions src/Navigation/generators.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const headerGenerator = (props) => {
<SC.HeaderClause
key={key}
onClick={() => navigateHeader(key, type)}
className='navHeaderClause'
className='navigationHeaderClause'
>
{text}
</ SC.HeaderClause>
Expand All @@ -33,7 +33,7 @@ export const headerGenerator = (props) => {
<SC.HeaderOne
key={key}
onClick={() => navigateHeader(key, type)}
className='navHeaderH1'
className='navigationHeaderH1'
>
{text}
</ SC.HeaderOne>
Expand All @@ -43,7 +43,7 @@ export const headerGenerator = (props) => {
<SC.HeaderTwo
key={key}
onClick={() => navigateHeader(key, type)}
className='navHeaderH2'
className='navigationHeaderH2'
>
{text}
</ SC.HeaderTwo>
Expand All @@ -53,7 +53,7 @@ export const headerGenerator = (props) => {
<SC.HeaderThree
key={key}
onClick={() => navigateHeader(key, type)}
className='navHeaderH3'
className='navigationHeaderH3'
>
{text}
</ SC.HeaderThree>
Expand Down
6 changes: 3 additions & 3 deletions src/TemplateLibrary/Components/TemplateCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ const DescriptionContainer = styled(Card.Description)`
const TemplateCard = props => (
<CardContainer fluid
key={props.template.uri}
className='templateCard'
className='templateLibraryCard'
>
<Card.Content>
<TemplateLogo src={props.template.icon} />
<Title className='templateCardTitle'>
<Title className='templateLibraryCardTitle'>
{
props.template.displayName
? props.template.displayName
: props.template.name
}
<Version>v {props.template.version}</Version>
</Title>
<DescriptionContainer className='templateCardDesc'>
<DescriptionContainer className='templateLibraryCardDescription'>
{props.template.description}
</DescriptionContainer>
</Card.Content>
Expand Down
4 changes: 2 additions & 2 deletions src/TemplateLibrary/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ const TemplateLibraryComponent = (props) => {
</HeaderImports>
</Header>
<Functionality>
<SearchInput className="icon" fluid icon="search" placeholder="Search..." onChange={onQueryChange} className='templateSearchInput' />
<SearchInput className="icon" fluid icon="search" placeholder="Search..." onChange={onQueryChange} className='templateLibrarySearchInput' />
{props.addTemp
&& <NewClauseComponent addTempInput={props.addTemp} />}
</Functionality>
{filtered && filtered.length ? <TemplateCards tempsHeight={libraryProps.TEMPLATES_HEIGHT} >
{filtered && filtered.length ? <TemplateCards className={'templateCardsDiv'} >
{_.sortBy(filtered, ['name']).map(t => (
<TemplateCard
key={t.uri}
Expand Down

0 comments on commit 3b7c7ea

Please sign in to comment.