mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49:40 +02:00
refactor: remove documents management step from onboarding tour
This commit is contained in:
parent
0edaf429ba
commit
ed3443bc9e
1 changed files with 1 additions and 8 deletions
|
|
@ -39,12 +39,6 @@ const TOUR_STEPS: TourStep[] = [
|
||||||
content: "View mentions and notifications in one place.",
|
content: "View mentions and notifications in one place.",
|
||||||
placement: "right",
|
placement: "right",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
target: '[data-joyride="documents-sidebar"]',
|
|
||||||
title: "Manage your documents",
|
|
||||||
content: "Access and manage all your uploaded documents.",
|
|
||||||
placement: "right",
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
interface TooltipPosition {
|
interface TooltipPosition {
|
||||||
|
|
@ -203,13 +197,12 @@ function TourTooltip({
|
||||||
const dotSize = 6;
|
const dotSize = 6;
|
||||||
const isUploadStep = stepIndex === 1;
|
const isUploadStep = stepIndex === 1;
|
||||||
const isInboxStep = stepIndex === 2;
|
const isInboxStep = stepIndex === 2;
|
||||||
const isDocumentsStep = stepIndex === 3;
|
|
||||||
|
|
||||||
if (position.pointerPosition === "left") {
|
if (position.pointerPosition === "left") {
|
||||||
return {
|
return {
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
left: -lineLength - dotSize,
|
left: -lineLength - dotSize,
|
||||||
top: isDocumentsStep || isInboxStep ? "calc(50% - 8px)" : "50%",
|
top: isInboxStep ? "calc(50% - 8px)" : "50%",
|
||||||
transform: "translateY(-50%)",
|
transform: "translateY(-50%)",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue