mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-11-16 01:21:16 +01:00
had issues with the proprietary vs core stuff, will fix later after demo:
This commit is contained in:
parent
8c70127e3c
commit
08ba1d518a
@ -16,7 +16,7 @@ import ActiveToolButton from "@app/components/shared/quickAccessBar/ActiveToolBu
|
|||||||
import AppConfigModal from '@app/components/shared/AppConfigModal';
|
import AppConfigModal from '@app/components/shared/AppConfigModal';
|
||||||
import { useAppConfig } from '@app/contexts/AppConfigContext';
|
import { useAppConfig } from '@app/contexts/AppConfigContext';
|
||||||
import { useOnboarding } from '@app/contexts/OnboardingContext';
|
import { useOnboarding } from '@app/contexts/OnboardingContext';
|
||||||
import InviteMembersModal from '@app/components/shared/InviteMembersModal';
|
|
||||||
import {
|
import {
|
||||||
isNavButtonActive,
|
isNavButtonActive,
|
||||||
getNavButtonStyle,
|
getNavButtonStyle,
|
||||||
@ -35,7 +35,6 @@ const QuickAccessBar = forwardRef<HTMLDivElement>((_, ref) => {
|
|||||||
const { config } = useAppConfig();
|
const { config } = useAppConfig();
|
||||||
const { startTour } = useOnboarding();
|
const { startTour } = useOnboarding();
|
||||||
const [configModalOpen, setConfigModalOpen] = useState(false);
|
const [configModalOpen, setConfigModalOpen] = useState(false);
|
||||||
const [inviteModalOpen, setInviteModalOpen] = useState(false);
|
|
||||||
const [activeButton, setActiveButton] = useState<string>('tools');
|
const [activeButton, setActiveButton] = useState<string>('tools');
|
||||||
const scrollableRef = useRef<HTMLDivElement>(null);
|
const scrollableRef = useRef<HTMLDivElement>(null);
|
||||||
const isOverflow = useIsOverflowing(scrollableRef);
|
const isOverflow = useIsOverflowing(scrollableRef);
|
||||||
@ -148,8 +147,6 @@ const QuickAccessBar = forwardRef<HTMLDivElement>((_, ref) => {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const isAdmin = config?.isAdmin === true;
|
|
||||||
|
|
||||||
const middleButtons: ButtonConfig[] = [];
|
const middleButtons: ButtonConfig[] = [];
|
||||||
//TODO: Activity
|
//TODO: Activity
|
||||||
//{
|
//{
|
||||||
@ -174,17 +171,6 @@ const QuickAccessBar = forwardRef<HTMLDivElement>((_, ref) => {
|
|||||||
// This will be overridden by the wrapper logic
|
// This will be overridden by the wrapper logic
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
...(isAdmin ? [{
|
|
||||||
id: 'invite',
|
|
||||||
name: t("quickAccess.invite", "Invite"),
|
|
||||||
icon: <LocalIcon icon="person-add" width="1.25rem" height="1.25rem" />,
|
|
||||||
isRound: true,
|
|
||||||
size: 'md' as const,
|
|
||||||
type: 'action' as const,
|
|
||||||
onClick: () => {
|
|
||||||
setInviteModalOpen(true);
|
|
||||||
}
|
|
||||||
}] : []),
|
|
||||||
{
|
{
|
||||||
id: 'config',
|
id: 'config',
|
||||||
name: t("quickAccess.settings", "Settings"),
|
name: t("quickAccess.settings", "Settings"),
|
||||||
@ -343,11 +329,6 @@ const QuickAccessBar = forwardRef<HTMLDivElement>((_, ref) => {
|
|||||||
opened={configModalOpen}
|
opened={configModalOpen}
|
||||||
onClose={() => setConfigModalOpen(false)}
|
onClose={() => setConfigModalOpen(false)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<InviteMembersModal
|
|
||||||
opened={inviteModalOpen}
|
|
||||||
onClose={() => setInviteModalOpen(false)}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user