/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/profile/search.tsx
33 строки
768 B
chrisnojima
refactor(styles): theme via hooks, no android remount (#29515)
08 авг 2026, 02:24
Не верифицирован
08 авг 2026, 02:24
a41d38e
Код
Авторство
О чём код?
import * as C from '@/constants' import * as Kb from '@/common-adapters' const ProfileSearch = () => { const styles = useStyles() const appendPeopleBuilder = C.Router2.appendPeopleBuilder return ( <Kb.SearchFilter hotkey="k" icon="iconfont-search" onClick={appendPeopleBuilder} placeholderText={isMobile ? 'Search' : 'Search people'} size="full-width" style={styles.filter} /> ) } const useStyles = Kb.Styles.createStyleHook(() => ({ filter: Kb.Styles.platformStyles({ isElectron: { ...Kb.Styles.marginH(Kb.Styles.globalMargins.xsmall), alignSelf: 'center', }, isMobile: { height: 40, ...Kb.Styles.paddingH(0), width: 215, }, }), })) export default ProfileSearch