mirror of https://github.com/apache/superset.git
chore: Removes tabs animation by default (#14496)
This commit is contained in:
parent
79ff96269b
commit
e7a4734742
|
@ -131,7 +131,7 @@ describe('DashboardBuilder', () => {
|
|||
it('should set animated=true on Tabs for perf', () => {
|
||||
const wrapper = setup({ dashboardLayout: undoableDashboardLayoutWithTabs });
|
||||
const tabProps = wrapper.find(ParentSize).find(Tabs).props();
|
||||
expect(tabProps.animated).toBe(true);
|
||||
expect(tabProps.animated).toEqual({ inkBar: true, tabPane: false });
|
||||
});
|
||||
|
||||
it('should render a TabPane and DashboardGrid for first Tab', () => {
|
||||
|
|
|
@ -104,7 +104,7 @@ const Tabs = Object.assign(StyledTabs, {
|
|||
|
||||
Tabs.defaultProps = {
|
||||
fullWidth: true,
|
||||
animated: true,
|
||||
animated: { inkBar: true, tabPane: false },
|
||||
};
|
||||
|
||||
const StyledEditableTabs = styled(StyledTabs)`
|
||||
|
@ -138,6 +138,7 @@ export const EditableTabs = Object.assign(StyledEditableTabs, {
|
|||
EditableTabs.defaultProps = {
|
||||
type: 'editable-card',
|
||||
fullWidth: false,
|
||||
animated: { inkBar: true, tabPane: false },
|
||||
};
|
||||
|
||||
EditableTabs.TabPane.defaultProps = {
|
||||
|
|
Loading…
Reference in New Issue