-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch non-existent files in studio functions (#944)
* Catch non-existent files in studio functions * handle context unavailable on the FE --------- Co-authored-by: anastasiia <[email protected]> Co-authored-by: Anastasiia Solop <[email protected]>
- Loading branch information
1 parent
a4dbfbb
commit 002b9ba
Showing
16 changed files
with
327 additions
and
284 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,31 @@ | ||
import IconWrapper from './Wrapper'; | ||
|
||
const RawIcon = ( | ||
<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M7.83975 2.88134C8.80444 1.22758 11.1939 1.22758 12.1586 2.88134L18.0069 12.907C18.9791 14.5736 17.7769 16.6666 15.8475 16.6666H4.15092C2.22145 16.6666 1.01927 14.5736 1.99147 12.907L7.83975 2.88134ZM10 6.66666C10.4603 6.66666 10.8334 7.03975 10.8334 7.49999V9.99999C10.8334 10.4602 10.4603 10.8333 10 10.8333C9.53978 10.8333 9.16669 10.4602 9.16669 9.99999V7.49999C9.16669 7.03975 9.53978 6.66666 10 6.66666ZM8.95835 12.5C8.95835 11.9247 9.42472 11.4583 10 11.4583C10.5753 11.4583 11.0417 11.9247 11.0417 12.5C11.0417 13.0753 10.5753 13.5417 10 13.5417C9.42472 13.5417 8.95835 13.0753 8.95835 12.5Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); | ||
|
||
const BoxedIcon = ( | ||
<svg | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M7.83975 2.88134C8.80444 1.22758 11.1939 1.22758 12.1586 2.88134L18.0069 12.907C18.9791 14.5736 17.7769 16.6666 15.8475 16.6666H4.15092C2.22145 16.6666 1.01927 14.5736 1.99147 12.907L7.83975 2.88134ZM10 6.66666C10.4603 6.66666 10.8334 7.03975 10.8334 7.49999V9.99999C10.8334 10.4602 10.4603 10.8333 10 10.8333C9.53978 10.8333 9.16669 10.4602 9.16669 9.99999V7.49999C9.16669 7.03975 9.53978 6.66666 10 6.66666ZM8.95835 12.5C8.95835 11.9247 9.42472 11.4583 10 11.4583C10.5753 11.4583 11.0417 11.9247 11.0417 12.5C11.0417 13.0753 10.5753 13.5417 10 13.5417C9.42472 13.5417 8.95835 13.0753 8.95835 12.5Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); | ||
|
||
export default IconWrapper(RawIcon, BoxedIcon); |
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
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
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.