-
Notifications
You must be signed in to change notification settings - Fork 22
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
Conversation
…actor/2520-clean-up-styles-dev-portal
<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 : ''}`}> |
There was a problem hiding this comment.
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}")` }} /> |
There was a problem hiding this comment.
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}>→</span> | ||
<div className={`${block} ${blockStyle} ${isDiff ? green : ''}`}> |
There was a problem hiding this comment.
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}>→</span> | ||
<div className={`${block} ${blockStyle} ${isDiff ? green : ''}`}> | ||
<div className={`${image} ${imageStyle}`} style={{ backgroundImage: `url("${changedMedia}")` }} /> |
There was a problem hiding this comment.
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}>→</span> | ||
<HTMLRender className={`${styles.diffRenderBlock} ${isDiff ? styles.green : ''}`} html={changedString || ''} /> | ||
<div className={diffRenderHtmlContainer}> | ||
<HTMLRender className={`${diffRenderBlock} ${isDiff ? red : ''}`} html={currentString || ''} /> |
There was a problem hiding this comment.
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}>→</span> | ||
<HTMLRender className={`${diffRenderBlock} ${isDiff ? green : ''}`} html={changedString || ''} /> |
There was a problem hiding this comment.
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 : ''}> |
There was a problem hiding this comment.
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 ?
Pull request checklist
Does this close any currently open issues?
fixes: #2520
Please check if your PR fulfills the following requirements:
yarn build
) was run locally and any changes were pushedyarn lint
) has passed locally and any fixes were made for failuresyarn test
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: #2520
What is the new behavior?
Does this introduce a breaking change?
Other information