mirror of
https://github.com/elementor/hello-theme.git
synced 2025-11-13 04:35:46 +08:00
Tweak: Remove welcome banner from home [TMZ-919]
This commit is contained in:
parent
1d87aa3d19
commit
64601ca7d0
2 changed files with 2 additions and 4 deletions
|
|
@ -48,6 +48,8 @@ export const Welcome = ( { sx, dismissable = false } ) => {
|
|||
await wp.ajax.post( 'ehe_dismiss_theme_notice', { nonce: window.ehe_cb.nonce } );
|
||||
setVisible( false );
|
||||
} catch ( e ) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error( e );
|
||||
}
|
||||
} }>
|
||||
<Box component="span" className="screen-reader-text">{ __( 'Dismiss this notice.', 'hello-elementor' ) }</Box>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { ThemeProvider } from '@elementor/ui/styles';
|
|||
import { GridWithActionLinks } from '../layouts/grids/grid-with-action-links';
|
||||
import Stack from '@elementor/ui/Stack';
|
||||
import { QuickLinks } from '../components/paper/quick-links';
|
||||
import { Welcome } from '../components/paper/welcome';
|
||||
import { SiteParts } from '../components/paper/site-parts';
|
||||
import { Resources } from '../components/paper/resources';
|
||||
|
||||
|
|
@ -15,9 +14,6 @@ export const AdminPage = () => {
|
|||
<Box className="hello_plus__notices" component="div">
|
||||
</Box>
|
||||
<Box>
|
||||
<Box sx={ { mb: 2 } }>
|
||||
<Welcome />
|
||||
</Box>
|
||||
<GridWithActionLinks>
|
||||
<Stack direction="column" gap={ 2 }>
|
||||
<QuickLinks />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue