Skip to content

Commit

Permalink
Add JSDoc description to the useFallbackWarning hook
Browse files Browse the repository at this point in the history
  • Loading branch information
pls78 committed Jan 20, 2025
1 parent eb108f2 commit a453987
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/js/src/components/social/useFallbackWarning.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { __, sprintf } from "@wordpress/i18n";
/**
* Checks if the fallback image is in AVIF format and sets a warning message.
*
* @param {string} imageFallbackUrl
* @param {string} imageUrl
* @param {array} imageWarnings
* @param {string} imageFallbackUrl The fallback image URL.
* @param {string} imageUrl The image URL.
* @param {array} imageWarnings The image warnings.
*
* @returns {array}
* @returns {string[]} An array of warnings.
*/
export const useFallbackWarning = ( imageFallbackUrl, imageUrl, imageWarnings ) => {
const [ hasFallbackWarning, setHasFallbackWarning ] = useState( false );
Expand Down

0 comments on commit a453987

Please sign in to comment.