Skip to content

Commit 8439571

Browse files
committed
fix: wrong commit (see last one)
1 parent 4fa9246 commit 8439571

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/components/SearchBar.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ const SearchInput = styled(InputBase)`
2323
}
2424
`;
2525

26+
const CustomBadge = styled(Badge)`
27+
& > .MuiBadge-colorSecondary {
28+
color: white;
29+
}
30+
31+
& > .MuiBadge-badge {
32+
font-weight: bold;
33+
}
34+
`;
35+
2636
const SearchInputWrapper = styled.div`
2737
display: flex;
2838
align-items: center;
@@ -121,7 +131,7 @@ export const SearchBar = React.forwardRef<
121131
}, [ref]);
122132

123133
return (
124-
<Badge
134+
<CustomBadge
125135
color="secondary"
126136
invisible={!store.dirty}
127137
badgeContent={store.dirtyByNumber}
@@ -152,7 +162,7 @@ export const SearchBar = React.forwardRef<
152162
</>
153163
)}
154164
</SearchInputWrapper>
155-
</Badge>
165+
</CustomBadge>
156166
);
157167
}
158168
);

0 commit comments

Comments
 (0)