mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
handle null check within component
This commit is contained in:
parent
49decf6b98
commit
1727c168c6
1 changed files with 6 additions and 4 deletions
|
|
@ -9,10 +9,12 @@ interface Props {
|
|||
};
|
||||
|
||||
export const SubscribeButtons = (props: Props) =>
|
||||
<>
|
||||
<SubscribeButton name={props.name} viewUrl={props.viewUrl} text="Subscribe" />
|
||||
<MirrorButtons name={props.name} viewUrlMirrors={props.viewUrlMirrors} />
|
||||
</>;
|
||||
props.viewUrl
|
||||
? <>
|
||||
<SubscribeButton name={props.name} viewUrl={props.viewUrl} text="Subscribe" />
|
||||
<MirrorButtons name={props.name} viewUrlMirrors={props.viewUrlMirrors} />
|
||||
</>
|
||||
: null;
|
||||
|
||||
interface MirrorButtonsProps {
|
||||
name: string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue