Commit 8baf6698 authored by Max Alekseenko's avatar Max Alekseenko

remove the second shadow

parent 6e328915
...@@ -38,7 +38,6 @@ const semanticTokens = { ...@@ -38,7 +38,6 @@ const semanticTokens = {
}, },
shadows: { shadows: {
action_bar: '0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)', action_bar: '0 4px 4px -4px rgb(0 0 0 / 10%), 0 2px 4px -4px rgb(0 0 0 / 6%)',
action_bar_large: '0 30px 25px -25px rgb(0 0 0 / 10%), 0 15px 10px -25px rgb(0 0 0 / 4%)',
}, },
}; };
......
...@@ -179,7 +179,6 @@ const Marketplace = () => { ...@@ -179,7 +179,6 @@ const Marketplace = () => {
<ActionBar <ActionBar
showShadow showShadow
isLargeShadow
display="flex" display="flex"
flexDirection="column" flexDirection="column"
mx={{ base: -3, lg: -12 }} mx={{ base: -3, lg: -12 }}
......
...@@ -8,7 +8,6 @@ type Props = { ...@@ -8,7 +8,6 @@ type Props = {
children: React.ReactNode; children: React.ReactNode;
className?: string; className?: string;
showShadow?: boolean; showShadow?: boolean;
isLargeShadow?: boolean;
} }
const TOP_UP = 106; const TOP_UP = 106;
...@@ -16,14 +15,12 @@ const TOP_DOWN = 0; ...@@ -16,14 +15,12 @@ const TOP_DOWN = 0;
export const ACTION_BAR_HEIGHT_DESKTOP = 24 + 32 + 12; export const ACTION_BAR_HEIGHT_DESKTOP = 24 + 32 + 12;
export const ACTION_BAR_HEIGHT_MOBILE = 24 + 32 + 24; export const ACTION_BAR_HEIGHT_MOBILE = 24 + 32 + 24;
const ActionBar = ({ children, className, showShadow, isLargeShadow }: Props) => { const ActionBar = ({ children, className, showShadow }: Props) => {
const ref = React.useRef<HTMLDivElement>(null); const ref = React.useRef<HTMLDivElement>(null);
const scrollDirection = useScrollDirection(); const scrollDirection = useScrollDirection();
const isSticky = useIsSticky(ref, TOP_UP + 5); const isSticky = useIsSticky(ref, TOP_UP + 5);
const bgColor = useColorModeValue('white', 'black'); const bgColor = useColorModeValue('white', 'black');
const shadow = isLargeShadow ? 'action_bar_large' : 'action_bar';
if (!React.Children.toArray(children).filter(Boolean).length) { if (!React.Children.toArray(children).filter(Boolean).length) {
return null; return null;
} }
...@@ -45,7 +42,7 @@ const ActionBar = ({ children, className, showShadow, isLargeShadow }: Props) => ...@@ -45,7 +42,7 @@ const ActionBar = ({ children, className, showShadow, isLargeShadow }: Props) =>
zIndex={{ base: 'sticky2', lg: 'docked' }} zIndex={{ base: 'sticky2', lg: 'docked' }}
boxShadow={{ boxShadow={{
base: isSticky ? 'md' : 'none', base: isSticky ? 'md' : 'none',
lg: isSticky && showShadow ? shadow : 'none', lg: isSticky && showShadow ? 'action_bar' : 'none',
}} }}
ref={ ref } ref={ ref }
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment