summaryrefslogtreecommitdiff
path: root/source/github-widgets/mergeability-row.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-04-26 15:37:42 +0800
committerGravatar GitHub <noreply@github.com> 2023-04-26 15:37:42 +0800
commit55dfdfd903bd7d36e0c2f3dc46847bddc73544f5 (patch)
tree34d969496dfcc1836af820975bc6e7ede37017d1 /source/github-widgets/mergeability-row.tsx
parent7e94056bb1edae5c64f4ed9901547419284a170f (diff)
downloadrefined-github-55dfdfd903bd7d36e0c2f3dc46847bddc73544f5.tar.gz
refined-github-55dfdfd903bd7d36e0c2f3dc46847bddc73544f5.tar.zst
refined-github-55dfdfd903bd7d36e0c2f3dc46847bddc73544f5.zip
Add `pr-base-commit` feature (#6538)
Co-authored-by: Yakov <16872793+yakov116@users.noreply.github.com>
Diffstat (limited to 'source/github-widgets/mergeability-row.tsx')
-rw-r--r--source/github-widgets/mergeability-row.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/github-widgets/mergeability-row.tsx b/source/github-widgets/mergeability-row.tsx
index bab87aff..a1f6c85f 100644
--- a/source/github-widgets/mergeability-row.tsx
+++ b/source/github-widgets/mergeability-row.tsx
@@ -4,11 +4,13 @@ type MergeabilityRowProps = {
action?: JSX.Element;
icon: JSX.Element;
iconClass?: string;
- heading: string;
- meta?: string;
+ heading: JSX.Element | string;
+ meta?: JSX.Element | string;
+ className?: string;
};
export default function createMergeabilityRow({
+ className = '',
action,
icon,
iconClass = '',
@@ -16,7 +18,7 @@ export default function createMergeabilityRow({
meta,
}: MergeabilityRowProps): JSX.Element {
return (
- <div className="branch-action-item">
+ <div className={`branch-action-item ${className}`}>
<div
className="branch-action-btn float-right js-immediate-updates js-needs-timeline-marker-header"
>