Skip to content

Commit

Permalink
update variation path
Browse files Browse the repository at this point in the history
  • Loading branch information
madhusudhand committed Jan 31, 2023
1 parent 22f98d2 commit 31c6070
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ShadowPanel, { useHasShadowControl } from './shadow-panel';

function ScreenBorder( { name, variation = '' } ) {
const hasBorderPanel = useHasBorderPanel( name );
const variationClassName = getVariationClassName( variationPath );
const variationClassName = getVariationClassName( variation );
const hasShadowPanel = useHasShadowControl( name );
return (
<>
Expand All @@ -24,7 +24,7 @@ function ScreenBorder( { name, variation = '' } ) {
<BorderPanel name={ name } variation={ variation } />
) }
{ hasShadowPanel && (
<ShadowPanel name={ name } variationPath={ variationPath } />
<ShadowPanel name={ name } variation={ variation } />
) }
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export function useHasShadowControl( name ) {
return supports.includes( 'shadow' );
}

export default function ShadowPanel( { name, variationPath = '' } ) {
export default function ShadowPanel( { name, variation = '' } ) {
const [ shadow, setShadow ] = useGlobalStyle(
`${ variationPath }shadow`,
`${ variation }shadow`,
name
);
const [ userShadow ] = useGlobalStyle(
`${ variationPath }shadow`,
`${ variation }shadow`,
name,
'user'
);
Expand Down

0 comments on commit 31c6070

Please sign in to comment.