diff options
author | 2022-08-08 02:00:43 +0700 | |
---|---|---|
committer | 2022-08-08 02:00:43 +0700 | |
commit | 409d93c5b2a70a31245cd09673b10355462d06a7 (patch) | |
tree | 41f6ed873981187bbc98f7895f6794e3db5e3e04 /source/github-helpers/banner.tsx | |
parent | 1ac1fac66e04e56b18e4968470d31cd0d9321a39 (diff) | |
download | refined-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.tsx | 7 |
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 |