This commit is contained in:
focp212@naver.com
2025-11-13 10:02:00 +09:00
parent 36845fdb25
commit 6e2d860c24
3 changed files with 3 additions and 3 deletions

View File

@@ -96,7 +96,7 @@ export const BoxContainer1 = () => {
{t('home.money', { value: new Intl.NumberFormat('en-US').format(sales?.todayTotalAmount || 0) })}
</span>
<span className={ `per ${(increaseRate && increaseRate >= 0)? 'plus': 'minus'}` }>
{(increaseRate && increaseRate >= 0) ? '↑ ' : '↓ '}
{ (increaseRate && increaseRate >= 0)? '↑ ' : '↓ ' }
{new Intl.NumberFormat('en-US').format(Math.abs(increaseRate || 0))}%
</span>
<a className="arrow">

View File

@@ -142,7 +142,7 @@ export const BoxContainer2 = () => {
{t('home.money', { value: new Intl.NumberFormat('en-US').format(sales?.currentMonthAmount || 0) })}
</span>
<span className={ `per ${(salesIncrease && salesIncrease >= 0)? 'plus': 'minus'}` }>
{(salesIncrease && salesIncrease >= 0) ? '↑ ' : '↓ '}
{ (salesIncrease && salesIncrease >= 0)? '↑ ' :'↓ ' }
{new Intl.NumberFormat('en-US').format(Math.abs(salesIncrease || 0))}%
</span>
<a className="arrow">

View File

@@ -23,7 +23,7 @@ export const FilterCalendar = ({
}: FilterCalendarProps) => {
const { t } = useTranslation();
const [filterTitle, setFilterTitle] = useState<string>(title || t('filter.period'));
const [dateReadOnly, setDateReadyOnly] = useState<boolean>(false);
const [dateReadOnly, setDateReadyOnly] = useState<boolean>(true);
const [filterDateOptionsBtn, setFilterDateOptionsBtn] = useState<FilterDateOptions>(FilterDateOptions.Today);
const [calendarOpen, setCalendarOpen] = useState<boolean>(false);
const [calendarType, setCalendarType] = useState<CalendarType>(CalendarType.Start);