@@ -18,8 +18,7 @@ import {
18
18
import { ChildBasics } from 'lib-common/generated/api-types/placement'
19
19
import { useMutation } from 'lib-common/query'
20
20
import { UUID } from 'lib-common/types'
21
- import { LegacyButton } from 'lib-components/atoms/buttons/LegacyButton'
22
- import LegacyInlineButton from 'lib-components/atoms/buttons/LegacyInlineButton'
21
+ import { Button } from 'lib-components/atoms/buttons/Button'
23
22
import { MutateButton } from 'lib-components/atoms/buttons/MutateButton'
24
23
import Select from 'lib-components/atoms/dropdowns/Select'
25
24
import {
@@ -30,7 +29,7 @@ import BaseModal from 'lib-components/molecules/modals/BaseModal'
30
29
import InfoModal from 'lib-components/molecules/modals/InfoModal'
31
30
import { H2 , H3 , Label , fontWeights } from 'lib-components/typography'
32
31
import { Gap , defaultMargins } from 'lib-components/white-space'
33
- import { faPlus , faQuestion , faTrash } from 'lib-icons'
32
+ import { faPen , faPlus , faQuestion , faTrash } from 'lib-icons'
34
33
35
34
import {
36
35
deleteCalendarEventTimeMutation ,
@@ -57,7 +56,7 @@ const TimeSpan = styled.span`
57
56
font-weight: ${ fontWeights . bold } ;
58
57
`
59
58
60
- const ChildLinkButton = styled ( LegacyInlineButton ) `
59
+ const ChildLinkButton = styled ( Button ) `
61
60
text-wrap: pretty;
62
61
text-align: start;
63
62
`
@@ -80,12 +79,15 @@ export default React.memo(function CalendarEventTimeReservation({
80
79
>
81
80
< TimeSpan data-qa = "event-time-range" > { `${ eventTime . startTime . format ( ) } – ${ eventTime . endTime . format ( ) } ` } </ TimeSpan >
82
81
< ChildLinkButton
82
+ appearance = "inline"
83
83
onClick = { ( ) => reserveAction ( eventTime ) }
84
+ order = "text-icon"
84
85
text = {
85
86
reservationChild
86
- ? `${ reservationChild . firstName } ${ reservationChild . lastName } `
87
+ ? `${ reservationChild . firstName } ${ reservationChild . lastName } `
87
88
: i18n . unit . calendar . events . discussionReservation . reserveButton
88
89
}
90
+ icon = { faPen }
89
91
data-qa = "reserve-event-time-button"
90
92
/>
91
93
</ ReservationRow >
@@ -207,7 +209,8 @@ export const DiscussionReservationModal = React.memo(
207
209
< H3 > { `${ t . reservationModal . reservationStatus } : ${ reservationChild . state . childId ? t . reservationModal . reserved : t . reservationModal . unreserved } ` } </ H3 >
208
210
209
211
{ viewMode === 'free' && (
210
- < LegacyInlineButton
212
+ < Button
213
+ appearance = "inline"
211
214
icon = { faPlus }
212
215
text = {
213
216
i18n . unit . calendar . events . discussionReservation . reserveButton
@@ -237,8 +240,9 @@ export const DiscussionReservationModal = React.memo(
237
240
placeholder = { t . reservationModal . selectPlaceholder }
238
241
data-qa = "reservee-select"
239
242
/>
240
- < LegacyInlineButton
241
- text = { i18n . common . remove }
243
+ < Button
244
+ appearance = "inline"
245
+ text = { t . reservationModal . removeReservation }
242
246
icon = { faX }
243
247
onClick = { ( ) => {
244
248
reservationChild . set ( { childId : null } )
@@ -255,9 +259,10 @@ export const DiscussionReservationModal = React.memo(
255
259
? `${ savedChild . firstName } ${ savedChild . lastName } `
256
260
: '' }
257
261
</ span >
258
- < LegacyInlineButton
262
+ < Button
263
+ appearance = "inline"
259
264
icon = { faX }
260
- text = { i18n . common . remove }
265
+ text = { t . reservationModal . removeReservation }
261
266
onClick = { ( ) => {
262
267
reservationChild . set ( { childId : null } )
263
268
setViewMode ( 'free' )
@@ -268,8 +273,9 @@ export const DiscussionReservationModal = React.memo(
268
273
269
274
< Gap size = "X5L" />
270
275
< FixedSpaceRow justifyContent = "space-between" >
271
- < LegacyInlineButton
272
- text = { i18n . common . remove }
276
+ < Button
277
+ appearance = "inline"
278
+ text = { t . reservationModal . removeDiscussionTime }
273
279
onClick = { ( ) => {
274
280
if ( savedChild ) {
275
281
setDeleteConfirmModalVisible ( true )
@@ -293,7 +299,7 @@ export const DiscussionReservationModal = React.memo(
293
299
/>
294
300
295
301
< FixedSpaceRow justifyContent = "flex-end" spacing = "s" >
296
- < LegacyButton
302
+ < Button
297
303
onClick = { cancelChanges }
298
304
data-qa = "cancel"
299
305
text = { i18n . common . cancel }
0 commit comments