summaryrefslogtreecommitdiff
path: root/source/github-helpers/banner.tsx
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2022-08-08 02:00:43 +0700
committerGravatar GitHub <noreply@github.com> 2022-08-08 02:00:43 +0700
commit409d93c5b2a70a31245cd09673b10355462d06a7 (patch)
tree41f6ed873981187bbc98f7895f6794e3db5e3e04 /source/github-helpers/banner.tsx
parent1ac1fac66e04e56b18e4968470d31cd0d9321a39 (diff)
downloadrefined-github-409d93c5b2a70a31245cd09673b10355462d06a7.tar.gz
refined-github-409d93c5b2a70a31245cd09673b10355462d06a7.tar.zst
refined-github-409d93c5b2a70a31245cd09673b10355462d06a7.zip
Always show `first-published-tag-for-merged-pr` (#5899)22.8.8
Diffstat (limited to 'source/github-helpers/banner.tsx')
-rw-r--r--source/github-helpers/banner.tsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/github-helpers/banner.tsx b/source/github-helpers/banner.tsx
index 7499e6d7..1e61d180 100644
--- a/source/github-helpers/banner.tsx
+++ b/source/github-helpers/banner.tsx
@@ -1,12 +1,11 @@
import React from 'dom-chef';
-import {RequireAllOrNone} from 'type-fest';
-type BannerProps = RequireAllOrNone<{
+interface BannerProps {
text: Array<string | JSX.Element> | string | JSX.Element;
- url: string;
+ url?: string;
buttonLabel: JSX.Element | string;
classes?: string[];
-}, 'buttonLabel' | 'url'>;
+}
// This could be a `<Banner/>` element but dom-chef doesn't pass props
// https://github.com/vadimdemedes/dom-chef/issues/77