1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

added small hero preset

This commit is contained in:
Fedor Katurov 2019-11-26 13:28:31 +07:00
parent 284721db67
commit c9a616b1c9
3 changed files with 23 additions and 20 deletions

View file

@ -103,12 +103,14 @@ const FlowHeroUnconnected: FC<IProps> = ({ heroes, history }) => {
[styles.is_visible]: loaded.includes(hero.id),
[styles.is_active]: current === hero.id,
})}
style={{ backgroundImage: `url("${getURL({ url: hero.thumbnail }, PRESETS.hero)}")` }}
style={{
backgroundImage: `url("${getURL({ url: hero.thumbnail }, PRESETS.small_hero)}")`,
}}
key={hero.id}
onClick={onClick}
>
<img
src={getURL({ url: hero.thumbnail }, PRESETS.hero)}
src={getURL({ url: hero.thumbnail }, PRESETS.small_hero)}
alt={hero.thumbnail}
onLoad={onLoad(hero.id)}
/>