Skip to content

Commit

Permalink
fix: polish today button
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-benz authored and Xiphe committed Feb 15, 2021
1 parent 5436c41 commit 1859141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/views/Budget/Budget.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ button.unloadedMonthListEntry {
margin-right: auto;
background: transparent;
border: 1px solid var(--border-color);
border-bottom: none;
border-radius: 3px;
color: var(--main-color);
font-size: 0.9rem;
Expand Down
4 changes: 2 additions & 2 deletions src/views/Budget/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import classNames from 'classnames';
import addMonths from 'date-fns/addMonths';
import format from 'date-fns/format';
import { Header } from '../../components';
import { useVisibleMonths, formatDateKey, useMonths } from '../../lib';
import { useVisibleMonths, formatDateKey, useMonths, getToday } from '../../lib';
import styles from './Budget.module.scss';

type Props = {
Expand Down Expand Up @@ -143,7 +143,7 @@ export default function BudgetHeader({ scrollRef, onClick }: Props) {
</div>
</div>
<button
name={formatDateKey(new Date())}
name={formatDateKey(getToday())}
className={styles.todayButton}
onClick={handleClick}
>
Expand Down

0 comments on commit 1859141

Please sign in to comment.