mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
💄 Remove the gap at the top of the screen
This commit is contained in:
parent
ed66f2bc05
commit
ffc8dc8d6b
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
import { useCallback } from '@wordpress/element';
|
import { useCallback, useLayoutEffect } from '@wordpress/element';
|
||||||
import { Button, Icon } from '@wordpress/components';
|
import { Button, Icon } from '@wordpress/components';
|
||||||
import { chevronLeft } from '@wordpress/icons';
|
import { chevronLeft } from '@wordpress/icons';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
|
@ -34,6 +34,11 @@ const TopNavigation = ( {
|
||||||
}
|
}
|
||||||
}, [ exitOnTitleClick, goToWooCommercePaymentsTab, onTitleClick ] );
|
}, [ exitOnTitleClick, goToWooCommercePaymentsTab, onTitleClick ] );
|
||||||
|
|
||||||
|
// Removes the excess padding at the top of the navigation bar.
|
||||||
|
useLayoutEffect( () => {
|
||||||
|
window.dispatchEvent( new Event( 'resize' ) );
|
||||||
|
}, [] );
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={ className }>
|
<div className={ className }>
|
||||||
<div className="ppcp-r-navigation">
|
<div className="ppcp-r-navigation">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue