diff --git a/pro/src/pages/Reimbursements/Income/Income.module.scss b/pro/src/pages/Reimbursements/Income/Income.module.scss index 3c4c168e912..028eceeb44f 100644 --- a/pro/src/pages/Reimbursements/Income/Income.module.scss +++ b/pro/src/pages/Reimbursements/Income/Income.module.scss @@ -2,103 +2,106 @@ @use "styles/variables/_size.scss" as size; @use "styles/mixins/_rem.scss" as rem; -.income-error { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - color: var(--color-grey-semi-dark); - text-align: center; - - .icon { - margin-bottom: rem.torem(32px); - } -} - -.income-filters { - display: flex; - flex-flow: row wrap; - margin-bottom: rem.torem(20px); - row-gap: rem.torem(10px); - - @media (min-width: size.$tablet) { - margin-bottom: rem.torem(12px); - } -} - -.income-filters-divider { - display: none; - - @media (min-width: size.$tablet) { - display: block; - margin: rem.torem(31.75px) rem.torem(24px) 0 0; - width: rem.torem(1px); - height: rem.torem(30px); - background: var(--color-grey-semi-dark); - } -} - -.income-year-filters { - display: flex; - flex-flow: row wrap; - flex-direction: row; - gap: rem.torem(8px); +.income { + &-error { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + color: var(--color-grey-semi-dark); + text-align: center; - @media (width >= 634px) { - height: rem.torem(66.75px); - align-items: end; + &-icon { + margin-bottom: rem.torem(32px); + } } - li button { + &-filters { display: flex; - justify-content: center; - align-items: center; - background: none; - cursor: pointer; - padding: rem.torem(10px); - color: var(--color-black); - border: solid rem.torem(1px) var(--color-grey-dark); - border-radius: rem.torem(4px); - } + flex-flow: row wrap; + margin-bottom: rem.torem(20px); + row-gap: rem.torem(10px); - li button:hover, li button:focus { - outline: rem.torem(1px) solid var(--color-primary); - } + @media (min-width: size.$tablet) { + margin-bottom: rem.torem(12px); + } - .active-year button { - @include fonts.button; + &-divider { + display: none; - border-color: var(--color-black); + @media (min-width: size.$tablet) { + display: block; + margin: rem.torem(31.75px) 0 0 rem.torem(24px); + width: rem.torem(1px); + height: rem.torem(30px); + background: var(--color-grey-semi-dark); + } + } - &::before { - content: ''; - display: block; - width: rem.torem(8px); - height: rem.torem(8px); - background-color: var(--color-secondary-light); - border-radius: 50%; - margin-right: rem.torem(8px); + &-by-year { + display: flex; + flex-flow: row wrap; + flex-direction: row; + gap: rem.torem(8px); + + @media (width >= 634px) { + height: rem.torem(66.75px); + margin-left: rem.torem(24px); + align-items: end; + } + + &-button { + display: flex; + justify-content: center; + align-items: center; + background: none; + cursor: pointer; + padding: rem.torem(10px); + color: var(--color-black); + border: solid rem.torem(1px) var(--color-grey-dark); + border-radius: rem.torem(4px); + + &:hover, &:focus { + outline: rem.torem(1px) solid var(--color-primary); + } + + &-active { + @include fonts.button; + + border-color: var(--color-black); + + &::before { + content: ''; + display: block; + width: rem.torem(8px); + height: rem.torem(8px); + background-color: var(--color-secondary-light); + border-radius: 50%; + margin-right: rem.torem(8px); + } + } + } } } -} -.income-no-data { - display: flex; - flex-direction: column; - align-items: center; + &-no-data { + display: flex; + flex-direction: column; + align-items: center; - .icon { - margin-bottom: rem.torem(20px); - } + &-icon { + margin-bottom: rem.torem(20px); + } - .text-with-link { - display: flex; - margin-top: rem.torem(10px); - flex-wrap: wrap; - justify-content: center; - } + &-text-with-link { + display: flex; + margin-top: rem.torem(10px); + flex-wrap: wrap; + justify-content: center; - .link { - margin: 0 rem.torem(10px); + &-buttonlink { + margin: 0 rem.torem(10px); + } + } } } \ No newline at end of file diff --git a/pro/src/pages/Reimbursements/Income/Income.tsx b/pro/src/pages/Reimbursements/Income/Income.tsx index c808b49d2ad..0b047299f7e 100644 --- a/pro/src/pages/Reimbursements/Income/Income.tsx +++ b/pro/src/pages/Reimbursements/Income/Income.tsx @@ -1,3 +1,4 @@ +import classnames from 'classnames' import isEqual from 'lodash.isequal' import { useState, useEffect } from 'react' import { useSelector } from 'react-redux' @@ -113,7 +114,7 @@ export const Income = () => { return (
{ )}