Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chibat committed Jan 20, 2024
1 parent 04e8681 commit 538d455
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Post(props: { post: GetPostsOutput; userId?: number }) {
class="badge bg-danger"
style={{ marginRight: "5px" }}
>
DRAFT
PRIVATE
</span>
<div>This post is visible only to you.</div>
</div>
Expand Down
7 changes: 5 additions & 2 deletions islands/PostEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,12 @@ export default function Edit(props: { post: PostViewType }) {
for="flexCheckDefault"
style={{ marginRight: "10px" }}
>
Draft
Private
</label>
<button class="btn btn-light me-2" onClick={() => location.href = `/posts/${postId}`}>
<button
class="btn btn-light me-2"
onClick={() => location.href = `/posts/${postId}`}
>
Cancel
</button>
<button
Expand Down
2 changes: 1 addition & 1 deletion islands/PostNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default function Post() {
for="flexCheckDefault"
style={{ marginRight: "10px" }}
>
Draft
Private
</label>
<button
class="btn btn-primary"
Expand Down
2 changes: 1 addition & 1 deletion islands/PostView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function PostView(
class="badge bg-danger"
style={{ marginRight: "5px" }}
>
DRAFT
PRIVATE
</span>
<div>This post is visible only to you.</div>
</div>
Expand Down

0 comments on commit 538d455

Please sign in to comment.