-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix antd deprecation warnings for Tabs.TabPane (#7469)
* fix antd deprecation warning for tabs.pane in download modal * removed deprecated antd tabs.tabpane in VX task viewer * fixed antd deprectation warning for tabs.tabpane in dataset settings view * fixed antd deprecation warning for tabs.tabpanne in dataset add view * fixed antd deprecation warning for tabs.tabpane in task create view * fixed antd deprecation warning for tabs.tabpane in version control view * updated changelog
- Loading branch information
1 parent
71d59f7
commit 9fa24f4
Showing
7 changed files
with
524 additions
and
490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,34 @@ | ||
import { BarsOutlined, ScheduleOutlined } from "@ant-design/icons"; | ||
import { Tabs } from "antd"; | ||
import { Tabs, TabsProps } from "antd"; | ||
import React from "react"; | ||
import TaskCreateBulkView from "admin/task/task_create_bulk_view"; | ||
import TaskCreateFormView from "admin/task/task_create_form_view"; | ||
const { TabPane } = Tabs; | ||
|
||
const TaskCreateView = () => ( | ||
<Tabs defaultActiveKey="1" className="container"> | ||
<TabPane | ||
tab={ | ||
const TaskCreateView = () => { | ||
const tabs: TabsProps["items"] = [ | ||
{ | ||
label: ( | ||
<span> | ||
<ScheduleOutlined /> | ||
Create Task | ||
</span> | ||
} | ||
key="1" | ||
> | ||
<TaskCreateFormView taskId={null} /> | ||
</TabPane> | ||
<TabPane | ||
tab={ | ||
), | ||
key: "1", | ||
children: <TaskCreateFormView taskId={null} />, | ||
}, | ||
{ | ||
label: ( | ||
<span> | ||
<BarsOutlined /> | ||
Bulk Creation | ||
</span> | ||
} | ||
key="2" | ||
> | ||
<TaskCreateBulkView /> | ||
</TabPane> | ||
</Tabs> | ||
); | ||
), | ||
key: "2", | ||
children: <TaskCreateBulkView />, | ||
}, | ||
]; | ||
|
||
return <Tabs defaultActiveKey="1" className="container" items={tabs} />; | ||
}; | ||
|
||
export default TaskCreateView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.