-
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.
* task/WP-273-CategoryIcon * task/WP-273-CategoryIcon-v2 * task/WP-273-CategoryIcon-v3 * task/WP-273-CategoryIcon-v4 * task/WP-273-CategoryIcon-v5 * task/WP-273-CategoryIcon-v6 * Update client/src/components/Applications/AppForm/AppForm.jsx Co-authored-by: Chandra Y <[email protected]> * formatting fix --------- Co-authored-by: Taylor Grafft <[email protected]> Co-authored-by: Taylor Grafft <[email protected]> Co-authored-by: Taylor Grafft <[email protected]> Co-authored-by: Taylor Grafft <[email protected]> Co-authored-by: Chandra Y <[email protected]> Co-authored-by: Taylor Grafft <[email protected]>
- Loading branch information
1 parent
f3e7f18
commit 1495914
Showing
5 changed files
with
86 additions
and
22 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 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
function doesClassExist(className, stylesheets) { | ||
for (let stylesheet of stylesheets) { | ||
//Required to make this work with Jest/identity-obj-proxy | ||
if (typeof stylesheet === 'object') { | ||
if (stylesheet[className]) { | ||
return true; | ||
} | ||
} else if (typeof stylesheet === 'string') { | ||
if (stylesheet.includes(`.${className}::before`)) { | ||
return true; | ||
} | ||
} | ||
} | ||
return false; | ||
} | ||
export default doesClassExist; |