mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix(web): 🐛 hide Description if null
This commit is contained in:
parent
1d892c4489
commit
a6de4ec62d
1 changed files with 3 additions and 4 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import React from "react";
|
||||
|
||||
interface Props {
|
||||
description: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export const Description = (props: Props) => <p>{props.description}</p>;
|
||||
export const Description = (props: Props) =>
|
||||
props.description ? <p>{props.description}</p> : null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue