refactor(react/ribbon): set up keyboard shortcuts

This commit is contained in:
Elian Doran
2025-08-23 20:59:13 +03:00
parent d53faa8c01
commit 9f217b88e4
4 changed files with 13 additions and 28 deletions

View File

@@ -1,15 +1,11 @@
import AttributeEditor from "./components/AttributeEditor";
import { TabContext } from "./ribbon-interface";
export default function OwnedAttributesTab({ note, notePath, componentId }: TabContext) {
export default function OwnedAttributesTab({ note, ...restProps }: TabContext) {
return (
<div className="attribute-list">
{ note && (
<AttributeEditor
componentId={componentId}
note={note}
notePath={notePath}
/>
<AttributeEditor note={note} {...restProps} />
)}
</div>
)