From f16ff6a826afe75ac49437f21140313f91d781a5 Mon Sep 17 00:00:00 2001 From: William Niemiec Date: Wed, 11 Aug 2021 11:23:42 -0300 Subject: [PATCH] bgColorActive -> bgColor --- package.json | 2 +- src/MonthPicker/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e1f4658..f048fde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wniemiec-component-reactnative/month-picker", - "version": "1.0.1", + "version": "2.0.0", "description": "Month selector.", "main": "index.js", "repository": { diff --git a/src/MonthPicker/index.js b/src/MonthPicker/index.js index 90c1c63..e855c26 100644 --- a/src/MonthPicker/index.js +++ b/src/MonthPicker/index.js @@ -38,13 +38,13 @@ const MONTHS = [ * @param {function(void): void} setSelectedMonth function that changes the * selected month after a month is selected in the selector * @param {string} [fgColor='#FFFFFF'] Text color - * @param {string} [bgColorActive='#233287'] Background color + * @param {string} [bgColor='#233287'] Background color */ export default function MonthPicker({ selectedMonth, setSelectedMonth, fgColor='#FFFFFF', - bgColorActive='#233287' + bgColor='#233287' }) { const monthRef = useRef(); @@ -99,7 +99,7 @@ export default function MonthPicker({ month={month} onPress={() => handleSelectMonth(index)} selected={selectedMonth == index} - bgColor={bgColorActive} + bgColor={bgColor} fgColor={fgColor} /> ))}