mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
feat(electron): multi tabs support (#7440)
use https://www.electronjs.org/docs/latest/api/web-contents-view to serve different tab views added tabs view manager in electron to handle multi-view actions and events. fix AF-1111 fix AF-999 fix PD-1459 fix AF-964 PD-1458
This commit is contained in:
@@ -100,11 +100,9 @@ export const ScrollableLayout = ({
|
||||
export const OnboardingPage = ({
|
||||
user,
|
||||
onOpenAffine,
|
||||
windowControl,
|
||||
}: {
|
||||
user: User;
|
||||
onOpenAffine: () => void;
|
||||
windowControl?: React.ReactNode;
|
||||
}) => {
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
@@ -150,19 +148,16 @@ export const OnboardingPage = ({
|
||||
return (
|
||||
<ScrollableLayout
|
||||
headerItems={
|
||||
<>
|
||||
{isWindowsDesktop ? windowControl : null}
|
||||
<Button
|
||||
className={clsx(styles.button, {
|
||||
[styles.disableButton]: questionIdx === 0,
|
||||
[styles.windowsAppButton]: isWindowsDesktop,
|
||||
})}
|
||||
size="extraLarge"
|
||||
onClick={() => setQuestionIdx(questions.length)}
|
||||
>
|
||||
Skip
|
||||
</Button>
|
||||
</>
|
||||
<Button
|
||||
className={clsx(styles.button, {
|
||||
[styles.disableButton]: questionIdx === 0,
|
||||
[styles.windowsAppButton]: isWindowsDesktop,
|
||||
})}
|
||||
size="extraLarge"
|
||||
onClick={() => setQuestionIdx(questions.length)}
|
||||
>
|
||||
Skip
|
||||
</Button>
|
||||
}
|
||||
isMacosDesktop={isMacosDesktop}
|
||||
isWindowsDesktop={isWindowsDesktop}
|
||||
@@ -265,7 +260,6 @@ export const OnboardingPage = ({
|
||||
}
|
||||
return (
|
||||
<ScrollableLayout
|
||||
headerItems={isWindowsDesktop ? windowControl : null}
|
||||
isMacosDesktop={isMacosDesktop}
|
||||
isWindowsDesktop={isWindowsDesktop}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user