Skip to content

Commit

Permalink
Use backgroundColor instead of bg props (premieroctet#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
baptadn authored Apr 6, 2020
1 parent 0d7f250 commit c957f4c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions src/components/inspector/panels/components/AvatarBadgePanel.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import React, { memo } from "react";
import ColorsControl from "../../controls/ColorsControl";
import React, { memo } from 'react'
import ColorsControl from '../../controls/ColorsControl'

const AvatarPanel = () => (
<>
<ColorsControl withFullColor label="Color" name="bg" enableHues />
<ColorsControl
withFullColor
label="Color"
name="backgroundColor"
enableHues
/>

<ColorsControl
withFullColor
Expand All @@ -12,6 +17,6 @@ const AvatarPanel = () => (
enableHues
/>
</>
);
)

export default memo(AvatarPanel);
export default memo(AvatarPanel)
15 changes: 10 additions & 5 deletions src/components/inspector/panels/components/BoxPanel.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import React, { memo } from "react";
import ColorsControl from "../../controls/ColorsControl";
import React, { memo } from 'react'
import ColorsControl from '../../controls/ColorsControl'

const BoxPanel = () => (
<ColorsControl withFullColor label="Color" name="bg" enableHues />
);
<ColorsControl
withFullColor
label="Color"
name="backgroundColor"
enableHues
/>
)

export default memo(BoxPanel);
export default memo(BoxPanel)

0 comments on commit c957f4c

Please sign in to comment.