Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Rider21 committed Nov 5, 2024
1 parent 4a9e38f commit cf4eac1
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/components/Checkbox/Checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export const Checkbox: React.FC<CheckboxProps> = ({
status === 'indeterminate'
? 'indeterminate'
: status
? 'checked'
: 'unchecked'
? 'checked'
: 'unchecked'
}
onPress={onPress}
color={theme.primary}
Expand Down
16 changes: 8 additions & 8 deletions src/plugins/types/filterTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ export type ValueOfFilter<T extends FilterTypes> =
T extends FilterTypes.CheckboxGroup
? CheckboxFilter['value']
: T extends FilterTypes.Picker
? PickerFilter['value']
: T extends FilterTypes.Switch
? SwitchFilter['value']
: T extends FilterTypes.TextInput
? TextFilter['value']
: T extends FilterTypes.ExcludableCheckboxGroup
? ExcludableCheckboxFilter['value']
: never;
? PickerFilter['value']
: T extends FilterTypes.Switch
? SwitchFilter['value']
: T extends FilterTypes.TextInput
? TextFilter['value']
: T extends FilterTypes.ExcludableCheckboxGroup
? ExcludableCheckboxFilter['value']
: never;

export const isPickerValue = (
q: FilterToValues<Filters>[string],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ const FilterItem: React.FC<FilterItemProps> = ({
value.include?.includes(val.value)
? true
: value.exclude?.includes(val.value)
? 'indeterminate'
: false
? 'indeterminate'
: false
}
onPress={() => {
if (value.exclude?.includes(val.value)) {
Expand Down
4 changes: 2 additions & 2 deletions src/screens/Categories/components/CategoryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const CategoryCard: React.FC<CategoryCardProps> = ({
? overlay(2, theme.surface2)
: theme.primaryContainer
: category.id === 2
? theme.tertiaryContainer
: theme.secondaryContainer,
? theme.tertiaryContainer
: theme.secondaryContainer,
},
]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const SecondRoute = () => {
sortOrder === item.ASC
? 'asc'
: sortOrder === item.DESC
? 'desc'
: undefined
? 'desc'
: undefined
}
onPress={() =>
setLibrarySettings({
Expand Down
16 changes: 8 additions & 8 deletions src/screens/novel/components/NovelBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const ChaptersSettingsSheet = ({
filter.match('AND isDownloaded=1')
? true
: filter.match('AND isDownloaded=0')
? 'indeterminate'
: false
? 'indeterminate'
: false
}
onPress={() => {
if (filter.match('AND isDownloaded=1')) {
Expand All @@ -67,8 +67,8 @@ const ChaptersSettingsSheet = ({
filter.match('AND `unread`=1')
? true
: filter.match('AND `unread`=0')
? 'indeterminate'
: false
? 'indeterminate'
: false
}
onPress={() => {
if (filter.match(' AND `unread`=1')) {
Expand Down Expand Up @@ -103,8 +103,8 @@ const ChaptersSettingsSheet = ({
sort === 'ORDER BY position ASC'
? 'asc'
: sort === 'ORDER BY position DESC'
? 'desc'
: undefined
? 'desc'
: undefined
}
onPress={() =>
sort === 'ORDER BY position ASC'
Expand All @@ -119,8 +119,8 @@ const ChaptersSettingsSheet = ({
sort === 'ORDER BY name ASC'
? 'asc'
: sort === 'ORDER BY name DESC'
? 'desc'
: undefined
? 'desc'
: undefined
}
onPress={() =>
sort === 'ORDER BY name ASC'
Expand Down
4 changes: 2 additions & 2 deletions src/screens/novel/components/Tracker/TrackerCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ export const TrackedItemCard = ({
trackItem.score,
)
: trackItem.score === 0
? '-'
: trackItem.score}
? '-'
: trackItem.score}
</Text>
</TouchableRipple>
</View>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const NovelSortModal: React.FC<NovelSortModalProps> = ({
sortOrder === item.ASC
? 'asc'
: sortOrder === item.DESC
? 'desc'
: undefined
? 'desc'
: undefined
}
onPress={() =>
setLibrarySettings({
Expand Down

0 comments on commit cf4eac1

Please sign in to comment.