mirror of
https://github.com/apache/superset.git
synced 2024-09-16 02:29:39 -04:00
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', () => {
|
it('should set animated=true on Tabs for perf', () => {
|
||||||
const wrapper = setup({ dashboardLayout: undoableDashboardLayoutWithTabs });
|
const wrapper = setup({ dashboardLayout: undoableDashboardLayoutWithTabs });
|
||||||
const tabProps = wrapper.find(ParentSize).find(Tabs).props();
|
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', () => {
|
it('should render a TabPane and DashboardGrid for first Tab', () => {
|
||||||
|
@ -104,7 +104,7 @@ const Tabs = Object.assign(StyledTabs, {
|
|||||||
|
|
||||||
Tabs.defaultProps = {
|
Tabs.defaultProps = {
|
||||||
fullWidth: true,
|
fullWidth: true,
|
||||||
animated: true,
|
animated: { inkBar: true, tabPane: false },
|
||||||
};
|
};
|
||||||
|
|
||||||
const StyledEditableTabs = styled(StyledTabs)`
|
const StyledEditableTabs = styled(StyledTabs)`
|
||||||
@ -138,6 +138,7 @@ export const EditableTabs = Object.assign(StyledEditableTabs, {
|
|||||||
EditableTabs.defaultProps = {
|
EditableTabs.defaultProps = {
|
||||||
type: 'editable-card',
|
type: 'editable-card',
|
||||||
fullWidth: false,
|
fullWidth: false,
|
||||||
|
animated: { inkBar: true, tabPane: false },
|
||||||
};
|
};
|
||||||
|
|
||||||
EditableTabs.TabPane.defaultProps = {
|
EditableTabs.TabPane.defaultProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user