diff options
author | 2023-04-26 14:12:39 +0800 | |
---|---|---|
committer | 2023-04-26 14:12:39 +0800 | |
commit | 7e94056bb1edae5c64f4ed9901547419284a170f (patch) | |
tree | 61be6d60c1e76bcf42ceaf3ee218ace3bc1d82b3 /source/github-widgets/mergeability-row.tsx | |
parent | 7bc3a21e7cf9c50b552bd90627a37e3b14084223 (diff) | |
download | refined-github-7e94056bb1edae5c64f4ed9901547419284a170f.tar.gz refined-github-7e94056bb1edae5c64f4ed9901547419284a170f.tar.zst refined-github-7e94056bb1edae5c64f4ed9901547419284a170f.zip |
Use native style in `update-pr-from-base-branch` (#6537)
Diffstat (limited to 'source/github-widgets/mergeability-row.tsx')
-rw-r--r-- | source/github-widgets/mergeability-row.tsx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/source/github-widgets/mergeability-row.tsx b/source/github-widgets/mergeability-row.tsx new file mode 100644 index 00000000..bab87aff --- /dev/null +++ b/source/github-widgets/mergeability-row.tsx @@ -0,0 +1,38 @@ +import React from 'dom-chef'; + +type MergeabilityRowProps = { + action?: JSX.Element; + icon: JSX.Element; + iconClass?: string; + heading: string; + meta?: string; +}; + +export default function createMergeabilityRow({ + action, + icon, + iconClass = '', + heading, + meta, +}: MergeabilityRowProps): JSX.Element { + return ( + <div className="branch-action-item"> + <div + className="branch-action-btn float-right js-immediate-updates js-needs-timeline-marker-header" + > + {action} + </div> + <div + className={`branch-action-item-icon completeness-indicator ${iconClass}`} + > + {icon} + </div> + <h3 className="h4 status-heading"> + {heading} + </h3> + <span className="status-meta"> + {meta} + </span> + </div> + ); +} |