Skip to content

Commit

Permalink
feat: implement result grid UDS tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 29, 2024
1 parent b3ce260 commit 13c246b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function Download({ eventIds }: { eventIds: string[] }): JSX.Elem
};

return (
<div className="p-4">
<div>
<p>This can take a few minutes to process.</p>
<Select
placeholder="select format"
Expand Down
10 changes: 5 additions & 5 deletions src/components/ResultsGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useQuery } from '@tanstack/react-query';
import { Button, Spinner, useFirebaseAuth } from '@ugrc/utah-design-system';
import { Button, Spinner, Tab, TabList, TabPanel, Tabs, useFirebaseAuth } from '@ugrc/utah-design-system';
import { User } from 'firebase/auth';
import ky from 'ky';
import { useEffect, useState } from 'react';
import { Selection, Tab, TableBody, TabList, TabPanel, Tabs } from 'react-aria-components';
import { Selection, TableBody } from 'react-aria-components';
import config from '../config';
import { useFilter } from './contexts/FilterProvider';
import { useSelection } from './contexts/SelectionProvider';
Expand Down Expand Up @@ -157,7 +157,7 @@ export default function ResultsGrid() {
| Selected: <strong>{selectedKeys === 'all' ? data?.length : selectedKeys.size}</strong>
<Button
variant="secondary"
// size="extraSmall"
size="extraSmall"
onPress={() => setSelectedStationIds(new Set())}
className="ml-2"
>
Expand All @@ -166,12 +166,12 @@ export default function ResultsGrid() {
</span>
)}
</span>
<Tabs aria-label="results panel">
<Tabs aria-label="results panel" className="mt-1">
<TabList>
<Tab id="grid">Results</Tab>
<Tab id="download">Download</Tab>
</TabList>
<TabPanel id="grid">
<TabPanel id="grid" className="p-0">
<Table
aria-label="query results"
className="-z-10 w-full border-t dark:border-t-zinc-300"
Expand Down

0 comments on commit 13c246b

Please sign in to comment.