Skip to content

Commit

Permalink
feat(deploy-web): Filter provider list with audited by default
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Apr 19, 2024
1 parent 9ac6a43 commit f31b392
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions deploy-web/src/pages/providers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const ProvidersPage: React.FunctionComponent<Props> = ({}) => {
const [page, setPage] = useState(1);
const [isFilteringActive, setIsFilteringActive] = useState(true);
const [isFilteringFavorites, setIsFilteringFavorites] = useState(false);
const [isFilteringAudited, setIsFilteringAudited] = useState(false);
const [isFilteringAudited, setIsFilteringAudited] = useState(true);
const [filteredProviders, setFilteredProviders] = useState<Array<ClientProviderList>>([]);
const [rowsPerPage, setRowsPerPage] = useState(10);
const [sort, setSort] = useState<string>("active-leases-desc");
Expand Down Expand Up @@ -302,28 +302,28 @@ const ProvidersPage: React.FunctionComponent<Props> = ({}) => {
<FormControlLabel
control={
<Checkbox
checked={isFilteringFavorites}
onChange={onIsFilteringFavoritesClick}
checked={isFilteringAudited}
onChange={onIsFilteringAuditedClick}
color="secondary"
size="small"
classes={{ root: classes.checkbox }}
/>
}
label="Favorites"
label="Audited"
/>
</Box>
<Box marginLeft="1rem">
<FormControlLabel
control={
<Checkbox
checked={isFilteringAudited}
onChange={onIsFilteringAuditedClick}
checked={isFilteringFavorites}
onChange={onIsFilteringFavoritesClick}
color="secondary"
size="small"
classes={{ root: classes.checkbox }}
/>
}
label="Audited"
label="Favorites"
/>
</Box>
</Box>
Expand Down Expand Up @@ -420,4 +420,3 @@ export async function getServerSideProps({ params }) {
}

export default ProvidersPage;

0 comments on commit f31b392

Please sign in to comment.