summaryrefslogtreecommitdiff
path: root/source/github-helpers/banner.tsx
diff options
context:
space:
mode:
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