mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
refactor: plugin loading logic (#3448)
This commit is contained in:
@@ -11,12 +11,13 @@ export const HeaderItem = (): ReactElement => {
|
||||
<IconButton
|
||||
onClick={useCallback(
|
||||
() =>
|
||||
// todo: abstract a context function to open a new tab
|
||||
setLayout(layout => {
|
||||
if (layout === 'editor') {
|
||||
return {
|
||||
direction: 'horizontal',
|
||||
first: 'editor',
|
||||
second: 'copilot',
|
||||
second: '@affine/copilot',
|
||||
splitPercentage: 70,
|
||||
};
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user