-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LazyCountrySymbol crash with invalid code (#4157)
Co-authored-by: Josh Wooding <[email protected]>
- Loading branch information
1 parent
3fba23f
commit c9e932d
Showing
6 changed files
with
71 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/countries": patch | ||
--- | ||
|
||
Fixed LazyCountrySymbol crash with invalid code, and `sharp` was not working correctly. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
import { FlexLayout } from "@salt-ds/core"; | ||
import { LazyCountrySymbol } from "@salt-ds/countries"; | ||
import { Suspense } from "react"; | ||
|
||
const code = "AD" as const; | ||
|
||
export const LazyLoading = () => ( | ||
<Suspense fallback="Loading..."> | ||
<LazyCountrySymbol code={code} /> | ||
<FlexLayout> | ||
<LazyCountrySymbol code={code} /> | ||
<LazyCountrySymbol code={code} sharp /> | ||
</FlexLayout> | ||
</Suspense> | ||
); |