diff --git a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx b/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx index 0a66512208..89be7eeced 100644 --- a/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx +++ b/libs/remix-ui/static-analyser/src/lib/components/BasicTitle.tsx @@ -37,15 +37,29 @@ export function BasicTitle(props: BasicTitleProps) { }, [props.warningStateEntries.length]) return ( - Remix{props.warningStateEntries.length > 0 ? !props.hideWarnings ? !props.showLibsWarnings ? 0 ? 'badge-warning' : 'badge-danger'} rounded-circle ml-1 text-center`}> - { - calculateWarningStateEntries(props.warningStateEntries).length}: ( - - { - warningCount - } - - ) : null : null} + + Remix + {props.warningStateEntries.length > 0 ? ( + !props.hideWarnings ? ( + !props.showLibsWarnings ? ( + + 0 + ? "badge-warning" + : "badge-danger" + } rounded-circle ml-1 text-center`} + > + {calculateWarningStateEntries(props.warningStateEntries).length} + + ) : ( + + {warningCount} + + ) + ) : null + ) : null} - ) + ); }