refactor: more TS code
This commit is contained in:
@@ -136,7 +136,7 @@ const StyledSettingContainer: FC<Props> = ({
|
||||
{dangers.length ? (
|
||||
<ul className="items danger">
|
||||
{dangers.map((d) => {
|
||||
if (!d) return null;
|
||||
if (typeof d === "boolean" || !d) return null;
|
||||
const { title, handler } = d;
|
||||
return (
|
||||
<li key={title} onClick={handler} className="item">
|
||||
|
||||
Reference in New Issue
Block a user