Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
fuko
/
trytanstackdb.com
Pull requests
fuko
trytanstackdb.com
Public
Synced with GitHub
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
Add a button to copy the currently viewed article's link
#40
Send to my agent
Merged
fuko
merged 4 commits into
main
from
refs/pull/40/head
·
merged by
fuko
11 months ago
View on GitHub
Conversation
5
Commits
4
Files changed
3
Impact
Showing
3 changed files
with
80 additions
and
13 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
77 additions and 10 deletions
+77
-10
src/components/tutorial/TutorialWindow.tsx
Modified
Diff
Before/After
Viewed
src/components/tutorial/TutorialWindow.tsx
View file
@@ -1,6 +1,6 @@
1
1
import
{
Tabs
,
TabsContent
}
from
"@radix-ui/react-tabs"
;
2
2
import
{ useNavigate, useRouter, useSearch }
from
"@tanstack/react-router"
;
3
-
import
{
DatabaseZapIcon
,
XIcon
}
from
"lucide-react"
;
3
+
import
{
CheckIcon
,
DatabaseZapIcon
,
LinkIcon
,
XIcon
}
from
"lucide-react"
;
4
4
import
{
AnimatePresence
, motion }
from
"motion/react"
;
5
5
import
{
6
6
useCallback,
Show all 2 lines
@@ -9,7 +9,8 @@
9
9
useRef,
10
10
useState,
11
11
}
from
"react"
;
12
-
import
{ steps }
from
"@/data/tutorial"
;
12
+
import
{ toast }
from
"sonner"
;
13
+
import
{ steps
as
articles }
from
"@/data/tutorial"
;
13
14
import
{ useScrollShadow }
from
"@/hooks/use-scroll-shadow"
;
14
15
import
{ cn }
from
"@/lib/utils"
;
15
16
import
{
Show all 6 lines
@@ -22,6 +23,65 @@
22
23
import
{
ScrollShadow
}
from
"../ui/scroll-shadow"
;
23
24
import
{
TutorialTableOfContents
}
from
"./TutorialTableOfContents"
;
24
25
26
+
function
CopyArticleLinkButton
({ activeStep }: {
activeStep
:
string
|
null
}) {
27
+
const
[copied, setCopied] =
useState
(
false
);
Home
Search
Explore
Menu