/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
shared/settings/common.desktop.tsx
14 строк
344 B
chrisnojima
refactor(styles): theme via hooks, no android remount (#29515)
08 авг 2026, 02:24
Не верифицирован
08 авг 2026, 02:24
a41d38e
Код
Авторство
О чём код?
import * as Kb from '@/common-adapters' function Stars({count}: {count: number}) { const theme = Kb.Styles.useTheme() return ( <Kb.Box2 direction="horizontal"> {Array.from({length: count}, (_, i) => i).map(i => ( <Kb.Icon key={i} color={theme.green} type="iconfont-star" /> ))} </Kb.Box2> ) } export {Stars}