Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions components/Layout/FiltersFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default function FiltersFrame({
rowsPerPage,
setRowsPerPage,
onlyCsv,
filters
filters,
loading,
setLoading
}) {
const { t } = useTranslation()
const router = useRouter()
Expand Down Expand Up @@ -104,6 +106,8 @@ export default function FiltersFrame({
}, [activeView])

const handleChangePage = (event, newPage) => {
if(loading) return
setLoading(true)
setPage(newPage)
}

Expand Down Expand Up @@ -148,6 +152,7 @@ export default function FiltersFrame({
rowsPerPage={rowsPerPage}
onRowsPerPageChange={handleChangeRowsPerPage}
rowsPerPageOptions={width <= 440 ? [] : rowsPerPageOptions}
disabled={loading}
//slotProps={{ select: </> }}
/>
</>
Expand All @@ -157,7 +162,7 @@ export default function FiltersFrame({

{orderList && (
<>
<SimpleSelect value={order} setValue={setOrder} optionsList={orderList} />
<SimpleSelect value={order} setValue={setOrder} optionsList={orderList} disabled={loading}/>
<button className="dropdown-btn" onClick={() => setSortMenuOpen(!sortMenuOpen)}>
<TbArrowsSort />
</button>
Expand All @@ -182,6 +187,7 @@ export default function FiltersFrame({
rowsPerPage={rowsPerPage}
onRowsPerPageChange={handleChangeRowsPerPage}
rowsPerPageOptions={rowsPerPageOptions}
disabled={loading}
//slotProps={{ select: </> }}
/>
</>
Expand All @@ -203,7 +209,9 @@ export default function FiltersFrame({
{orderList?.map((item, i) => (
<li
key={i}
style={{ fontWeight: item.value === order ? 'bold' : 'normal' }}
style={{
fontWeight: item.value === order ? 'bold' : 'normal',
}}
onClick={() => hideMobileSortMenu(item.value)}
suppressHydrationWarning
>
Expand Down
3 changes: 3 additions & 0 deletions components/Layout/Header/MobileMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ export default function MobileMenu({
<Link href="/learn/xrp-xah-taxes" className="mobile-menu-item" onClick={mobileMenuToggle}>
{t('menu.services.tax-reports')}
</Link>
<Link href="/admin/pro/history" className="mobile-menu-item" onClick={mobileMenuToggle}>
Try Out Tax Reports
</Link>

<Link href="/submit-account-information" className="mobile-menu-item" onClick={mobileMenuToggle}>
{t('menu.project-registration')}
Expand Down
1 change: 1 addition & 0 deletions components/Layout/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export default function Header({
<Link href="/services/nft-mint">{t('menu.services.nft-mint')}</Link>
<Link href="/username">{t('menu.usernames')}</Link>
<Link href="/learn/xrp-xah-taxes">{t('menu.services.tax-reports')}</Link>
<Link href="/admin/pro/history">Try Out Tax Reports</Link>
<Link href="/submit-account-information">{t('menu.project-registration')}</Link>
{!devNet && <Link href="/alerts">{t('menu.price-alerts', { nativeCurrency })}</Link>}
<a href={'/submit/'}>{t('menu.submit-offline-tx')}</a>
Expand Down
3 changes: 2 additions & 1 deletion components/UI/SimpleSelect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect, useState } from 'react'
import Select from 'react-select'

export default function SimpleSelect({ value, setValue, optionsList, className }) {
export default function SimpleSelect({ value, setValue, optionsList, className, disabled }) {
const [rendered, setRendered] = useState(false)
const [choosenOption, setChoosenOption] = useState()

Expand Down Expand Up @@ -36,6 +36,7 @@ export default function SimpleSelect({ value, setValue, optionsList, className }
setValue(a.value)
}}
isSearchable={false}
isDisabled={disabled}
className={`dropdown dropdown--desktop ${className}`}
classNamePrefix="react-select"
/>
Expand Down
Loading