Skip to content

Commit

Permalink
style: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Aug 25, 2024
1 parent 30674ed commit 53e85dc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ function Header() {
return (
<nav className="navbar mb-3 bg-neutral text-neutral-content">
<div className="flex-1">
<Link to="/" className="btn-ghost btn text-xl normal-case">
<Link to="/" className="btn btn-ghost text-xl normal-case">
Microblogging
</Link>
</div>
<div className="flex-none justify-between">
<button
type="button"
className="btn-circle btn mr-6"
className="btn btn-circle mr-6"
data-toggle-theme="forest,winter"
data-act-class="ACTIVECLASS"
aria-label="Dark Theme"
Expand All @@ -39,7 +39,7 @@ function Header() {
</svg>
</button>
<form className="form-inline navbar-end">
<Link to="/posts/new" className="btn-primary btn-outline btn">
<Link to="/posts/new" className="btn btn-outline btn-primary">
New Post
</Link>
</form>
Expand Down
6 changes: 3 additions & 3 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ function Header() {
return (
<nav className="navbar mb-3 bg-neutral text-neutral-content">
<div className="flex-1">
<Link to="/" className="btn-ghost btn text-xl normal-case">
<Link to="/" className="btn btn-ghost text-xl normal-case">
Microblogging
</Link>
</div>
<div className="flex-none justify-between">
<button
type="button"
className="btn-circle btn mr-6"
className="btn btn-circle mr-6"
data-toggle-theme="forest,winter"
data-act-class="ACTIVECLASS"
aria-label="Dark Theme"
Expand All @@ -39,7 +39,7 @@ function Header() {
</svg>
</button>
<form className="form-inline navbar-end">
<Link to="/posts/new" className="btn-primary btn-outline btn">
<Link to="/posts/new" className="btn btn-outline btn-primary">
New Post
</Link>
</form>
Expand Down
1 change: 0 additions & 1 deletion src/components/post-preview.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
import { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/[postId]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function EditPost({ post }: IBlogPostProps) {
<input
title="Update post"
type="submit"
className="btn-primary btn-outline btn mt-5"
className="btn btn-outline btn-primary mt-5"
value="Update it"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/posts/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function AddPost() {
<button
title="Add new post"
type="submit"
className="btn-primary btn-outline btn mt-5"
className="btn btn-outline btn-primary mt-5"
>
<i className="glyphicon glyphicon-ok" />
Post it
Expand Down

0 comments on commit 53e85dc

Please sign in to comment.