Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: #2520 remove unused styles + refactor app revision styles #2554

Merged
merged 5 commits into from
Sep 3, 2020

Conversation

nphivu414
Copy link
Contributor

Pull request checklist

Does this close any currently open issues?

fixes: #2520

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (yarn build) was run locally and any changes were pushed
  • Lint (yarn lint) has passed locally and any fixes were made for failures
  • Test (yarn test) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: #2520

What is the new behavior?

  • Remove unused styles + refactor app revision styles

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot requested a review from trankhacvy September 3, 2020 06:19
<div className={`${styles.block} ${blockStyle} ${isDiff ? styles.red : ''}`}>
<div className={`${styles.image} ${imageStyle}`} style={{ backgroundImage: `url("${currentMedia}")` }} />
<div className={container}>
<div className={`${block} ${blockStyle} ${isDiff ? red : ''}`}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

<div className={`${styles.image} ${imageStyle}`} style={{ backgroundImage: `url("${currentMedia}")` }} />
<div className={container}>
<div className={`${block} ${blockStyle} ${isDiff ? red : ''}`}>
<div className={`${image} ${imageStyle}`} style={{ backgroundImage: `url("${currentMedia}")` }} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

<div className={`${styles.block} ${blockStyle} ${isDiff ? styles.green : ''}`}>
<div className={`${styles.image} ${imageStyle}`} style={{ backgroundImage: `url("${changedMedia}")` }} />
<span className={arrow}>&#8594;</span>
<div className={`${block} ${blockStyle} ${isDiff ? green : ''}`}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

<div className={`${styles.image} ${imageStyle}`} style={{ backgroundImage: `url("${changedMedia}")` }} />
<span className={arrow}>&#8594;</span>
<div className={`${block} ${blockStyle} ${isDiff ? green : ''}`}>
<div className={`${image} ${imageStyle}`} style={{ backgroundImage: `url("${changedMedia}")` }} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

<span className={styles.arrow}>&#8594;</span>
<HTMLRender className={`${styles.diffRenderBlock} ${isDiff ? styles.green : ''}`} html={changedString || ''} />
<div className={diffRenderHtmlContainer}>
<HTMLRender className={`${diffRenderBlock} ${isDiff ? red : ''}`} html={currentString || ''} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

<div className={diffRenderHtmlContainer}>
<HTMLRender className={`${diffRenderBlock} ${isDiff ? red : ''}`} html={currentString || ''} />
<span className={arrow}>&#8594;</span>
<HTMLRender className={`${diffRenderBlock} ${isDiff ? green : ''}`} html={changedString || ''} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

@@ -20,12 +20,12 @@ const diffTypes = {
const DiffViewer = ({ currentString, changedString, type = 'words' }: DiffViewerProps) => {
const result = diffTypes[type](currentString, changedString).map((part, index) => {
return (
<span key={index} className={part.added ? styles.green : part.removed ? styles.red : ''}>
<span key={index} className={part.added ? green : part.removed ? red : ''}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change to use cx ?

@github-actions github-actions bot requested a review from vuhuucuong September 3, 2020 07:50
@nphivu414 nphivu414 merged commit 1412699 into master Sep 3, 2020
@nphivu414 nphivu414 deleted the refactor/2520-clean-up-styles-dev-portal branch September 3, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: STEP 6 Clean up un-used styles, remove SASS and move styles to component
3 participants