diff --git a/src/block/icon-list/deprecated/save.js b/src/block/icon-list/deprecated/save.js
index 8ba91c52a..f60b676e0 100644
--- a/src/block/icon-list/deprecated/save.js
+++ b/src/block/icon-list/deprecated/save.js
@@ -1,8 +1,3 @@
-/**
- * Internal dependencies
- */
-import { IconListStyles } from './style'
-
/**
* External dependencies
*/
@@ -44,7 +39,7 @@ export const Save = props => {
attributes={ attributes }
version={ props.version }
>
-
+ { attributes.generatedCss && }
{
- const propsToPass = {
- ...props,
- version: props.version,
- versionAdded: '3.0.0',
- versionDeprecated: '',
- }
-
- const columns = props.columns ? props.columns : 1
- const unborderedItems = props.listDisplayStyle === 'grid' ? columns : 1
-
- return (
- <>
-
-
-
-
-
-
-
-
- value + 'deg' }
- />
-
- value === 0 ? '0px' : undefined }
- />
-
-
- ! value ? `counter(stk-icon-list-counter, var(--stk-list-style-type, decimal))` : undefined }
- enabledCallback={ getAttribute => getAttribute( 'ordered' ) }
- dependencies={ [ 'ordered' ] }
- />
- value === 'center' ? 'auto' : value === 'right' ? 'auto 0' : value === 'left' ? '0 auto' : '' }
- />
- ! value ? 'fit-content' : undefined }
- enabledCallback={ getAttribute => getAttribute( 'listDisplayStyle' ) === 'grid' }
- dependencies={ [ 'listDisplayStyle' ] }
- />
- value === 'center' ? 'auto' : value === 'right' ? 'auto 0' : value === 'left' ? '0 auto' : '' }
- enabledCallback={ getAttribute => getAttribute( 'listDisplayStyle' ) !== 'grid' }
- dependencies={ [ 'listDisplayStyle' ] }
- />
-
-
-
-
- >
- )
-}
-
-export const IconListStyles = memo( props => {
- const { columns, listDisplayStyle } = useBlockAttributesContext( attributes => ( {
- columns: attributes.columns,
- listDisplayStyle: attributes.listDisplayStyle,
- } ) )
-
- return (
- <>
-
-
-
-
-
-
-
-
- >
- )
-} )
-
-IconListStyles.defaultProps = {
- version: '',
-}
-
-IconListStyles.Content = props => {
- if ( props.attributes.generatedCss ) {
- return
- }
- const columns = props.attributes.columns
- const listDisplayStyle = props.attributes.listDisplayStyle
- return (
-
-
-
-
-
-
-
-
-
-
- )
-}
-
-IconListStyles.Content.defaultProps = {
- version: '',
- attributes: {},
-}