-
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.
- Loading branch information
Showing
13 changed files
with
2,729 additions
and
2,613 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
24 changes: 24 additions & 0 deletions
24
extensions/src/hello-someone/src/emotion-test.web-view.tsx
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,24 @@ | ||
import { logger } from '@papi/frontend'; | ||
import { Button } from 'platform-bible-react'; | ||
import { Button as MuiButton } from '@mui/material'; | ||
|
||
/** | ||
* This web view exists to test if importing `platform-bible-react` and `@mui/material` at once will | ||
* successfully deduplicate `@emotion/react`. If it fails, there will be a console warning in the | ||
* renderer indicating `@emotion/react` was loaded twice. | ||
*/ | ||
|
||
globalThis.webViewComponent = function EmotionTestWebView() { | ||
return ( | ||
<div> | ||
<div> | ||
@emotion/react test - you should not see a console warning about @emotion/react being loaded | ||
twice | ||
</div> | ||
<Button onClick={() => logger.info('platform-bible-react button ')}> | ||
platform-bible-react | ||
</Button> | ||
<MuiButton onClick={() => logger.info('mui button')}>mui button</MuiButton> | ||
</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
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
Oops, something went wrong.