one-click-accessibility/modules/settings/assets/js/pages/icon-settings.js
Nirbhay Singh 92defe508c
[APP-1018] Help menu change (#155)
* update: remove accessibility word from menu items

* update: remove top bar

* update: add help button to the sidebar

* update: re-add spacing in styled css code

* update: create styled components
2025-02-05 15:20:27 +02:00

48 lines
1.1 KiB
JavaScript

import Box from '@elementor/ui/Box';
import Container from '@elementor/ui/Container';
import Typography from '@elementor/ui/Typography';
import { styled } from '@elementor/ui/styles';
import { BottomBar } from '@ea11y/components';
import { IconDesignSettings, PositionSettings } from '@ea11y/layouts';
import { mixpanelService } from '@ea11y/services';
import { useEffect } from '@wordpress/element';
import { __ } from '@wordpress/i18n';
const StyledBox = styled(Box)`
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 100%;
`;
const StyledContainer = styled(Container)`
overflow: auto;
max-height: 100%;
padding: ${({ theme }) => theme.spacing(4)};
`;
const IconSettings = () => {
useEffect(() => {
mixpanelService.sendEvent('page_view', {
page: 'Button',
});
}, []);
return (
<StyledBox>
<StyledContainer>
<Typography variant="h4" fontWeight="400" marginBottom={4}>
{__('Button', 'pojo-accessibility')}
</Typography>
<IconDesignSettings marginBottom={4} />
<PositionSettings />
</StyledContainer>
<BottomBar />
</StyledBox>
);
};
export default IconSettings;