Skip to content

Commit

Permalink
feat: add clear selection button
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 29, 2024
1 parent 39e860d commit f8293ef
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/ResultsGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from '@tanstack/react-query';
import { Spinner, useFirebaseAuth } from '@ugrc/utah-design-system';
import { Button, Spinner, useFirebaseAuth } from '@ugrc/utah-design-system';
import { User } from 'firebase/auth';
import ky from 'ky';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -155,6 +155,14 @@ export default function ResultsGrid() {
<span>
{' '}
| Selected: <strong>{selectedKeys === 'all' ? data?.length : selectedKeys.size}</strong>
<Button
variant="secondary"
// size="extraSmall"
onPress={() => setSelectedStationIds(new Set())}
className="ml-2"
>
Clear Selection
</Button>
</span>
)}
</span>
Expand Down

0 comments on commit f8293ef

Please sign in to comment.