Skip to content

Commit

Permalink
Move comment into function JSDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Jul 29, 2022
1 parent df45dce commit 1102825
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/components/src/popover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ const positionToPlacement = ( position ) => {
return y;
};

// Given the floating-ui `placement`, compute the origin used for the entrance
// animation. The origin should be on the "opposite" side from the placement.

/** @type {Object.<FloatingUIPlacement, AppearOrigin>} */
const PLACEMENT_TO_ANIMATION_ORIGIN_MAP = {
top: 'bottom',
Expand All @@ -94,6 +91,8 @@ const PLACEMENT_TO_ANIMATION_ORIGIN_MAP = {
};

/**
* Given the floating-ui `placement`, compute the origin used for the entrance
* animation. The origin should be on the "opposite" side from the placement.
*
* @param {FloatingUIPlacement} placement A placement string from floating ui
* @param {boolean} rtl
Expand Down

0 comments on commit 1102825

Please sign in to comment.