Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ttttonyhe committed Nov 18, 2023
1 parent d5ee6eb commit 7ee9a83
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion apps/main/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ['@ouorz/eslint-config-next'],
extends: ["@ouorz/eslint-config-next"],
}
8 changes: 4 additions & 4 deletions apps/main/src/components/Kbar/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ const KbarPanel = () => {
animation === "transition"
? "animate-kbarTransition"
: animation === "out"
? "animate-kbarOut"
: animation === "in"
? "animate-kbar opacity-0"
: ""
? "animate-kbarOut"
: animation === "in"
? "animate-kbar opacity-0"
: ""
}`}
>
<div
Expand Down
4 changes: 2 additions & 2 deletions apps/main/src/components/Tabs/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ const Tabs = (props: TabsProps) => {
? index - 1
: items.length - 1
: index + 1 < items.length
? index + 1
: 0
? index + 1
: 0
if (targetIndex >= 0 && targetIndex < items.length) {
highlight(
listRef.current.children[targetIndex],
Expand Down
4 changes: 2 additions & 2 deletions apps/main/src/utilities/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const getApi = (props: Parameters) => {
const s = props.sticky
? "sticky=1"
: props.sticky === undefined
? ""
: "sticky=0"
? ""
: "sticky=0"
const ce = props.cateExclude ? `&categories_exclude=${props.cateExclude}` : ""
const c = props.cate ? `&categories=${props.cate}` : ""
const p = props.perPage !== undefined ? `&per_page=${props.perPage}` : ""
Expand Down

0 comments on commit 7ee9a83

Please sign in to comment.