Skip to content

Commit

Permalink
Update hsv-color-picker container style
Browse files Browse the repository at this point in the history
  • Loading branch information
derekblank committed Aug 11, 2023
1 parent 4333a9c commit 72432f7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions packages/components/src/color-picker/hsv-color-picker.native.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { View, StyleSheet, Dimensions } from 'react-native';
import { View, Dimensions } from 'react-native';

/**
* WordPress dependencies
Expand All @@ -13,6 +13,7 @@ import { useRef } from '@wordpress/element';
*/
import HuePicker from './hue-picker';
import SaturationValuePicker from './saturation-picker';
import styles from './style.native.scss';

const HsvColorPicker = ( props ) => {
const maxWidth = Dimensions.get( 'window' ).width - 32;
Expand Down Expand Up @@ -47,7 +48,7 @@ const HsvColorPicker = ( props ) => {
} = props;

return (
<View style={ [ styles.container, containerStyle ] }>
<View style={ [ styles[ 'hsv-container' ], containerStyle ] }>
<SaturationValuePicker
containerStyle={ satValPickerContainerStyle }
currentColor={ currentColor }
Expand Down Expand Up @@ -81,11 +82,4 @@ const HsvColorPicker = ( props ) => {
);
};

const styles = StyleSheet.create( {
container: {
justifyContent: 'center',
alignItems: 'center',
},
} );

export default HsvColorPicker;

0 comments on commit 72432f7

Please sign in to comment.