-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes default label from Default to Filters in explorer (#226)
* change counts and Default label on Cohort builder * v0.10.40 * revert .env.development
- Loading branch information
1 parent
040aa21
commit 8fc185a
Showing
8 changed files
with
62 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"packages": ["packages/*"], | ||
"useWorkspaces": true, | ||
"version": "0.10.39" | ||
"version": "0.10.40" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,26 @@ | ||
import { Button, LoadingOverlay, Text} from '@mantine/core'; | ||
|
||
import { | ||
FilterSet, | ||
useGetCountsQuery, | ||
} from '@gen3/core'; | ||
|
||
import { Paper, LoadingOverlay, Text } from '@mantine/core'; | ||
|
||
interface CountsValueProps { | ||
readonly label: string; | ||
readonly counts?: number; | ||
readonly isSuccess: boolean; | ||
readonly label: string; | ||
readonly counts?: number; | ||
readonly isSuccess: boolean; | ||
} | ||
|
||
const CountsValue = ({ label, isSuccess, counts }: CountsValueProps) => { | ||
|
||
// TODO handle case of data.length == 1 | ||
return ( | ||
<div className="mr-4"> | ||
<LoadingOverlay visible={!isSuccess} /> | ||
<Button color="primary" variant="filled"> | ||
{`${counts?.toLocaleString() ?? '...'} ${label}`} | ||
</Button> | ||
</div> | ||
); | ||
const CountsValue = ({ label, isSuccess, counts }: CountsValueProps) => { | ||
// TODO handle case of data.length == 1 | ||
return ( | ||
<div className="mr-4"> | ||
<LoadingOverlay visible={!isSuccess} /> | ||
<Paper | ||
shadow="xs" | ||
p="xs" | ||
withBorder | ||
className="bg-primary font-heading text-md font-semibold" | ||
> | ||
{`${counts?.toLocaleString() ?? '...'} ${label}`} | ||
</Paper> | ||
</div> | ||
); | ||
}; | ||
|
||
export default CountsValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters