-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for code review. Also reorganized some files and fixed some s…
…mall problems I found.
- Loading branch information
1 parent
cdae7c7
commit 034f6ba
Showing
18 changed files
with
334 additions
and
298 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
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { TabInfo } from '@shared/data/WebviewTypes'; | ||
|
||
const ErrorTab = ({ errorMessage }: { errorMessage: string }) => { | ||
return ( | ||
<> | ||
<div> | ||
Content could not be loaded. Please make sure you have the correct | ||
extension loaded. | ||
</div> | ||
<div>Message: {errorMessage}</div> | ||
</> | ||
); | ||
}; | ||
|
||
/** | ||
* Creates a new error message tab with the specified error message | ||
*/ | ||
const createErrorTab = (errorMessage: string): TabInfo => { | ||
return { | ||
type: 'error', | ||
title: 'Error', | ||
content: <ErrorTab errorMessage={errorMessage} />, | ||
minWidth: 150, | ||
minHeight: 150, | ||
}; | ||
}; | ||
|
||
export default createErrorTab; |
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
Oops, something went wrong.