Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scffs committed Nov 17, 2023
1 parent 9bb9c9d commit 7e5d675
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/UI/Lesson/LessonCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ const LessonCard: FC<ILessonCard> = ({ lesson }) => {
const displayDay = isLessonToday
? 'Сегодня'
: dayEnded
? ' День завершён'
: undefined
? ' День завершён'
: undefined

const lessonComponents = useMemo(() => {
if (lesson.lessons && lesson.lessons.length > 0) {
Expand Down
6 changes: 5 additions & 1 deletion src/modals/LessonModal/LessonGrade.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { FC } from 'preact/compat'
import { Group, Header, SimpleCell } from '@vkontakte/vkui'
import { AbsenceTypes, AbsenceTypesDescription, Lesson } from '@diary-spo/shared'
import {
AbsenceTypes,
AbsenceTypesDescription,
Lesson,
} from '@diary-spo/shared'
import { Mark, ExplanationTooltip } from '@components'
import LessonTasks from './LessonTasks'

Expand Down
12 changes: 6 additions & 6 deletions src/views/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@ const LoginForm: FC<{ id: string }> = ({ id }) => {
const loginTopText = isLoginEmpty
? 'Логин'
: loginPattern.test(login)
? 'Логин введён'
: 'Введите корректный логин'
? 'Логин введён'
: 'Введите корректный логин'
const passwordTopText =
password === ''
? 'Пароль'
: isPasswordValid
? 'Пароль введён'
: 'Введите корректный пароль'
? 'Пароль введён'
: 'Введите корректный пароль'

return (
<Panel nav={id}>
Expand All @@ -194,8 +194,8 @@ const LoginForm: FC<{ id: string }> = ({ id }) => {
isLoginEmpty
? 'default'
: loginPattern.test(login)
? 'valid'
: 'error'
? 'valid'
: 'error'
}
bottom={isLoginEmpty || loginTopText}
bottomId="login-type"
Expand Down

0 comments on commit 7e5d675

Please sign in to comment.