@@ -4,38 +4,29 @@ import { css } from 'styled-components';
4
4
5
5
import { Scope , ScopeTypes } from '@/constants/OfferType' ;
6
6
import { Button , ButtonVariants } from '@/ui/Button' ;
7
+ import { CustomIcon , CustomIconVariants } from '@/ui/CustomIcon' ;
7
8
import { Icons } from '@/ui/Icon' ;
8
9
import { Image } from '@/ui/Image' ;
9
10
import { Inline } from '@/ui/Inline' ;
10
11
import type { StackProps } from '@/ui/Stack' ;
11
12
import { getStackProps , Stack } from '@/ui/Stack' ;
12
13
import { Text , TextVariants } from '@/ui/Text' ;
13
- import { getGlobalBorderRadius , getValueFromTheme } from '@/ui/theme' ;
14
+ import { colors , getGlobalBorderRadius , getValueFromTheme } from '@/ui/theme' ;
14
15
import { Title } from '@/ui/Title' ;
15
16
16
17
const THUMBNAIL_SIZE = 80 ;
17
18
19
+ const { udbMainBlue } = colors ;
20
+
18
21
const getValue = getValueFromTheme ( 'pictureUploadBox' ) ;
19
22
20
23
const ImageIcon = ( { width } : { width : string } ) => {
21
24
return (
22
- < svg
23
- xmlns = "http://www.w3.org/2000/svg"
24
- data-name = "Layer 1"
25
- viewBox = "0 0 512 512"
25
+ < CustomIcon
26
+ color = { udbMainBlue }
27
+ name = { CustomIconVariants . IMAGE }
26
28
width = { width }
27
- >
28
- < g fillRule = "evenodd" >
29
- < path
30
- fill = "#f0f0f0"
31
- d = "M450.31 379.78a5 5 0 0 0 0-7.06l-33.97-33.97a5 5 0 0 0-7.08 0l-33.96 33.97a5 5 0 1 0 7.07 7.06l25.43-25.42v71.52a5 5 0 0 0 10 0v-71.52l25.43 25.42a5.03 5.03 0 0 0 7.08 0zM13 268.08l118.9-100.55L298 283.94a5 5 0 1 0 5.74-8.19L267.7 250.5l114.78-82.74 55.36 55.38v68.04l-3.66-.83a96.1 96.1 0 0 0-116.86 82.14 95.57 95.57 0 0 0 8.75 53.21l2.07 4.3H62.94A49.99 49.99 0 0 1 13 380.07v-112zM212.57 138.3a39.68 39.68 0 1 0 39.67-39.67 39.72 39.72 0 0 0-39.67 39.67zm200.06 159.59c51.6 0 91.98 45.05 85.73 96.58a86.18 86.18 0 1 1-85.73-96.58z"
32
- />
33
- < path
34
- fill = "#777"
35
- d = "M452.43 370.6a8 8 0 0 1-11.32 11.3l-20.31-20.3v64.28a8 8 0 0 1-16 0V361.6l-20.31 20.3a8 8 0 0 1-11.3-11.3l33.95-33.97a8.01 8.01 0 0 1 11.32 0zm42.95 23.5a83.18 83.18 0 0 0-72.56-92.6 85.26 85.26 0 0 0-10.19-.61 83.19 83.19 0 1 0 82.75 93.22zM62.93 427h260.43a99.16 99.16 0 0 1 111.48-139.57v-63.05l-52.68-52.7-109.29 78.79 32.58 22.84a8 8 0 1 1-9.18 13.1l-164.2-115.1L16 269.47v110.6A46.99 46.99 0 0 0 62.93 427zm0-382.22h324.98a46.98 46.98 0 0 1 46.93 46.93v110.04l-46.18-46.18a8 8 0 0 0-10.34-.84L259 240.75l-122.79-86.08a8 8 0 0 0-9.76.45L16 248.52V91.71a46.98 46.98 0 0 1 46.93-46.93zm427.94 278.14a98.52 98.52 0 0 0-40.03-30.4V91.7a63 63 0 0 0-62.93-62.93H62.93A63 63 0 0 0 0 91.71v288.36a63.01 63.01 0 0 0 62.93 62.94h270.1c.55.75 1.12 1.5 1.7 2.24a99.18 99.18 0 1 0 156.14-122.33zm-238.63-221.3a36.67 36.67 0 1 1-36.67 36.68 36.72 36.72 0 0 1 36.67-36.67zm0 89.35a52.67 52.67 0 1 1 52.67-52.67 52.73 52.73 0 0 1-52.67 52.67z"
36
- />
37
- </ g >
38
- </ svg >
29
+ />
39
30
) ;
40
31
} ;
41
32
@@ -173,7 +164,7 @@ const PictureUploadBox = ({
173
164
{ images . length === 0 && (
174
165
< Stack alignItems = "center" >
175
166
< Stack >
176
- < ImageIcon width = "60 " />
167
+ < ImageIcon width = "80 " />
177
168
</ Stack >
178
169
< Text variant = { TextVariants . MUTED } textAlign = "center" >
179
170
{ scope === ScopeTypes . ORGANIZERS
@@ -183,14 +174,8 @@ const PictureUploadBox = ({
183
174
</ Stack >
184
175
) }
185
176
< Button
186
- variant = { ButtonVariants . SECONDARY }
177
+ variant = { ButtonVariants . SECONDARY_OUTLINE }
187
178
onClick = { onClickAddImage }
188
- css = { `
189
- &.btn {
190
- box-shadow: ${ ( { theme } ) =>
191
- theme . components . button . boxShadow . large } ;
192
- }
193
- ` }
194
179
>
195
180
{ t ( 'pictures.add_button' ) }
196
181
</ Button >
0 commit comments