Fix warning about Tab and TabPanel

This commit is contained in:
Dan Abramov
2022-04-03 21:05:54 +01:00
parent 80e223a3b8
commit 66ad4ddd48
2 changed files with 48 additions and 41 deletions

View File

@@ -10,3 +10,6 @@ export function ToolbarButton({ isActive, iconKey, onClick, label }) {
</div>
);
}
// https://github.com/reactjs/react-tabs#set-tabsrole
ToolbarButton.tabsRole = "Tab";