Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add renderCalendarDay prop to allow for one-off, hacky customization …
…of day styling
- Loading branch information
Maja Wichrowska
committed
Dec 11, 2017
1 parent
bab162d
commit d810291
Showing
30 changed files
with
987 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,8 @@ html { | |
a { | ||
color: #008489; | ||
font-weight: bold; | ||
} | ||
|
||
.foo-bar { | ||
background: red !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { forbidExtraProps, or, childrenOfType } from 'airbnb-prop-types'; | ||
|
||
import CalendarDay from './CalendarDay'; | ||
import CustomizableCalendarDay from './CustomizableCalendarDay'; | ||
|
||
const propTypes = forbidExtraProps({ | ||
children: or([childrenOfType(CalendarDay), childrenOfType(CustomizableCalendarDay)]).isRequired, | ||
}); | ||
|
||
export default function CalendarWeek({ children }) { | ||
return ( | ||
<tr> | ||
{children} | ||
</tr> | ||
); | ||
} | ||
|
||
CalendarWeek.propTypes = propTypes; |
Oops, something went wrong.