Skip to content

Commit b353f94

Browse files
authored
Fix minor bugs for multi-track upload demo (#3854)
1 parent 22d4be5 commit b353f94

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

packages/web/src/pages/upload-page/components/EditPageNew.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ const MultiTrackFooter = () => {
283283
iconLeft={IconCaretLeft}
284284
onClick={goPrev}
285285
disabled={prevDisabled}
286+
type='button'
286287
/>
287288
<HarmonyButton
288289
className={cn({ [styles.disabled]: nextDisabled })}
@@ -291,6 +292,7 @@ const MultiTrackFooter = () => {
291292
iconRight={IconCaretRight}
292293
onClick={goNext}
293294
disabled={nextDisabled}
295+
type='button'
294296
/>
295297
</div>
296298
)

packages/web/src/pages/upload-page/fields/ModalField.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
padding: var(--unit-4) var(--unit-6);
88
gap: var(--unit-4);
99

10-
border: 1px solid var(--border-strong);
10+
border: 1px solid var(--border-default);
1111
border-radius: 8px;
1212
}
1313

packages/web/src/pages/upload-page/fields/ModalField.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import {
1313
import { useFormikContext } from 'formik'
1414
import { isEmpty } from 'lodash'
1515

16+
import { Tile } from 'components/tile/Tile'
17+
1618
import styles from './ModalField.module.css'
1719

1820
const messages = {
@@ -60,12 +62,10 @@ export const ModalField = (props: ModalFieldProps) => {
6062
)
6163

6264
return (
63-
<>
64-
<div className={styles.previewTile} onClick={open}>
65-
{preview}
66-
<IconCaretRight className={styles.caret} />
67-
</div>
65+
<Tile onClick={open} className={styles.previewTile} elevation='flat'>
66+
{preview}
67+
<IconCaretRight className={styles.caret} />
6868
{modal}
69-
</>
69+
</Tile>
7070
)
7171
}

0 commit comments

Comments
 (0)