[dyad] Improve tab color logic - wrote 1 file(s)
This commit is contained in:
@@ -67,10 +67,8 @@ export function MetaForm() {
|
||||
let headlinesColor: IndicatorColor = "gray";
|
||||
if (metaData.headlines && metaData.headlines.length > 0) {
|
||||
const h1s = metaData.headlines.filter((h) => h.tag === "h1");
|
||||
if (h1s.length === 0) {
|
||||
if (h1s.length !== 1) {
|
||||
headlinesColor = "red";
|
||||
} else if (h1s.length > 1) {
|
||||
headlinesColor = "yellow";
|
||||
} else {
|
||||
headlinesColor = "green";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user