Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9315543

Browse files
committed
fix the prop
1 parent10537dc commit9315543

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

‎app/share/[id]/page.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default async function ShareGraphPage({
2828
graphDefinition={graph.mermaid_syntax}
2929
emojis={graph.emojis}
3030
graphId={id}
31+
isPublic={graph.is_public}
3132
isShared={true}
3233
/>
3334
)

‎components/GraphCard.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function GraphCard({
4141
author,
4242
graphId,
4343
isShared=false,
44+
isPublic=false,
4445
}:MermaidGraphProps){
4546
const[svgContent,setSvgContent]=useState<string>('')
4647
const[isCopied,setIsCopied]=useState<boolean>(false)
@@ -49,7 +50,7 @@ export function GraphCard({
4950
const[user,setUser]=useState<User|null>(null)
5051
const[shareUrl,setShareUrl]=useState<string>('')
5152
const[isEditDialogOpen,setIsEditDialogOpen]=useState<boolean>(false)
52-
const[isPublicGraph,setIsPublicGraph]=useState(false)
53+
const[isPublicGraph,setIsPublicGraph]=useState(isPublic)
5354
const[currentGraphDefinition,setCurrentGraphDefinition]=
5455
useState<string>(graphDefinition)
5556

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp