-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): gs-relative-growth-advantage: show better errors wh…
…en fit fails * show a nice error when we can't connect to the cov spectrum server * when the cov spectrum server errors, we assume that it didn't have enough data to compute a fit resolves #506
- Loading branch information
1 parent
3c45773
commit 48539d6
Showing
4 changed files
with
160 additions
and
26 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,9 +1,9 @@ | ||
import { type FunctionComponent } from 'preact'; | ||
|
||
export const NoDataDisplay: FunctionComponent = () => { | ||
export const NoDataDisplay: FunctionComponent<{ message?: string }> = ({ message = 'No data available.' }) => { | ||
return ( | ||
<div className='h-full w-full rounded-md border-2 border-gray-100 p-2 flex items-center justify-center'> | ||
<div>No data available.</div> | ||
<div>{message}</div> | ||
</div> | ||
); | ||
}; |
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