Skip to content

Commit 260bbae

Browse files
committed
refactor: remove redundant style condition in RenderCustomHeaderTwoMonths example. Related commit: 7a95428
- Eliminated the visibility style condition for the previous navigation button when customHeaderCount is 1, simplifying the component's logic. - This change enhances code clarity and reduces unnecessary complexity in the example.
1 parent 26b9a07 commit 260bbae

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

docs-site/src/examples/ts/renderCustomHeaderTwoMonths.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ const RenderCustomHeaderTwoMonths = () => {
1616
className={
1717
"react-datepicker__navigation react-datepicker__navigation--previous"
1818
}
19-
style={
20-
customHeaderCount === 1 ? { visibility: "hidden" } : undefined
21-
}
2219
onClick={decreaseMonth}
2320
style={{
2421
visibility: customHeaderCount === 0 ? "visible" : "hidden",

0 commit comments

Comments
 (0)