LicenseDialog: make license list keyboard accessible

This commit is contained in:
David Lechner
2022-03-19 21:20:02 -05:00
parent 1802bcf796
commit 7abdcf85e7
4 changed files with 75 additions and 34 deletions
+1 -4
View File
@@ -25,7 +25,6 @@ const cx = (...classNames: Array<string | undefined | false>): string =>
/** Node item data similar to blueprintsjs TreeNodeInfo */
export type TreeItemData = {
readonly label: string;
readonly icon?: IconName | MaybeElement;
readonly secondaryLabel?: string | MaybeElement;
};
@@ -36,9 +35,7 @@ export type TreeItemData = {
*/
export const TreeItemContext = createContext<TreeItem<TreeItemData>>({
index: '<default>',
data: {
label: '<default>',
},
data: {},
});
export const renderers: Omit<