fix(#in670): header color fixes #254
Merged
andrey.dekterev
merged 1 commits from IN-670-header-colors into develop 2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'IN-670-header-colors'
Deleting a branch is permanent. It CANNOT be undone. Continue?
https://insports.atlassian.net/browse/IN-670
color: string | undefined = DEFAULT_HEADER_COLOR,headerImage: string | undefined | null,) => {if ([думаю от подобной ерунды нужно избавляться, так как при добавлении новых клиентов приходится изменять и здесь.
лучше будет так
color?: string
с остальными, где приписываем undefined, можно поступить так же
я имел ввиду код который написан ниже
} from 'config'import { callApi } from 'helpers'import { TournamentType } from './getMatches'import type { TournamentType } from './getMatches'
gradientColor? css`background: linear-gradient(270deg,Поправь отступы, плз
${({ gradientColor }) => (gradientColor? css`background: linear-gradient(Отступы
const imageHeader = Boolean(profileWithImage[profileId])&& sportType === 1&& profileType === ProfileTypes.TOURNAMENTS ? `/images/${profileId}` : headerImage&& sportType === 1Здесь отступы нужно добавить
|| client.name === ClientNames.Fqtv|| client.name === ClientNames.Tunisia ? css`background: ${color};background: linear-gradient(Здесь тоже отступ поправить нужно
e235cdf505to7a60acc12f2 years ago7a60acc12finto develop 2 years agoReviewers
7a60acc12f.