mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-03 19:05:03 +00:00
use 120 max line length for both server and client code (was 100 and 140)
This commit is contained in:
@@ -17,7 +17,13 @@ import {
|
||||
TbSortDescending,
|
||||
TbUser,
|
||||
} from "react-icons/tb"
|
||||
import { markAllAsReadWithConfirmationIfRequired, reloadEntries, search, selectNextEntry, selectPreviousEntry } from "@/app/entries/thunks"
|
||||
import {
|
||||
markAllAsReadWithConfirmationIfRequired,
|
||||
reloadEntries,
|
||||
search,
|
||||
selectNextEntry,
|
||||
selectPreviousEntry,
|
||||
} from "@/app/entries/thunks"
|
||||
import { useAppDispatch, useAppSelector } from "@/app/store"
|
||||
import { changeSettings } from "@/app/user/thunks"
|
||||
import { ActionButton } from "@/components/ActionButton"
|
||||
@@ -143,7 +149,13 @@ export function Header() {
|
||||
onClick={toggleReadingMode}
|
||||
/>
|
||||
<ActionButton
|
||||
icon={settings.readingOrder === "asc" ? <TbSortAscending size={iconSize} /> : <TbSortDescending size={iconSize} />}
|
||||
icon={
|
||||
settings.readingOrder === "asc" ? (
|
||||
<TbSortAscending size={iconSize} />
|
||||
) : (
|
||||
<TbSortDescending size={iconSize} />
|
||||
)
|
||||
}
|
||||
label={settings.readingOrder === "asc" ? msg`Asc` : msg`Desc`}
|
||||
onClick={toggleReadingOrder}
|
||||
/>
|
||||
@@ -160,7 +172,11 @@ export function Header() {
|
||||
placeholder={_(msg`Search`)}
|
||||
{...searchForm.getInputProps("search")}
|
||||
leftSection={<TbSearch size={iconSize} />}
|
||||
rightSection={<CloseButton onClick={async () => await (searchFromStore && dispatch(search("")))} />}
|
||||
rightSection={
|
||||
<CloseButton
|
||||
onClick={async () => await (searchFromStore && dispatch(search("")))}
|
||||
/>
|
||||
}
|
||||
autoFocus
|
||||
/>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user