Skip to content

Commit f16ff6a

Browse files
bgColorActive -> bgColor
1 parent d57d69a commit f16ff6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wniemiec-component-reactnative/month-picker",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "Month selector.",
55
"main": "index.js",
66
"repository": {

src/MonthPicker/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ const MONTHS = [
3838
* @param {function(void): void} setSelectedMonth function that changes the
3939
* selected month after a month is selected in the selector
4040
* @param {string} [fgColor='#FFFFFF'] Text color
41-
* @param {string} [bgColorActive='#233287'] Background color
41+
* @param {string} [bgColor='#233287'] Background color
4242
*/
4343
export default function MonthPicker({
4444
selectedMonth,
4545
setSelectedMonth,
4646
fgColor='#FFFFFF',
47-
bgColorActive='#233287'
47+
bgColor='#233287'
4848
}) {
4949
const monthRef = useRef();
5050

@@ -99,7 +99,7 @@ export default function MonthPicker({
9999
month={month}
100100
onPress={() => handleSelectMonth(index)}
101101
selected={selectedMonth == index}
102-
bgColor={bgColorActive}
102+
bgColor={bgColor}
103103
fgColor={fgColor}
104104
/>
105105
))}

0 commit comments

Comments
 (0)