Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dashboard): Make FilterBar width resizable #20778

Merged
merged 9 commits into from
Jul 20, 2022
Prev Previous commit
Next Next commit
use defaultValue for width
  • Loading branch information
justinpark committed Jul 20, 2022
commit 66f705ea7f0db38766d7771007167e1d6fda7b92
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const ActionButtonsContainer = styled.div<{ width: number }>`
`;

export const ActionButtons = ({
width,
width = OPEN_FILTER_BAR_WIDTH,
onApply,
onClearAll,
dataMaskApplied,
Expand All @@ -105,10 +105,7 @@ export const ActionButtons = ({
);

return (
<ActionButtonsContainer
data-test="filterbar-action-buttons"
width={width || OPEN_FILTER_BAR_WIDTH}
>
<ActionButtonsContainer data-test="filterbar-action-buttons" width={width}>
<Button
disabled={isApplyDisabled}
buttonStyle="primary"
Expand Down