react-icons/bs#BsArrowRight TypeScript Examples
The following examples show how to use
react-icons/bs#BsArrowRight.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: focused-view.tsx From terraform-visual with MIT License | 6 votes |
ChangedField = (props: ChangedFieldProps) => {
const { field, changes, actionAlias } = props
const beforeChange = changes[0]
const afterChange = changes[changes.length - 1]
const [beforeChangeColorClassName, afterChangeColorClassName] = getFieldChangeColorClassName(
actionAlias,
)
return (
<div className={styles.row}>
<div className={styles.rowHeader}>{field}</div>
<div className={`${styles.rowBefore} ${beforeChangeColorClassName}`}>
<pre>{prettifyJson(beforeChange)}</pre>
</div>
{!isEqual(beforeChange, afterChange) && (
<>
<div className={styles.rowArrow}>
<BsArrowRight />
</div>
<div className={`${styles.rowAfter} ${afterChangeColorClassName}`}>
<pre>{prettifyJson(afterChange)}</pre>
</div>
</>
)}
</div>
)
}