Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
[C-2587] Fix playlist update tooltip (#3700)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Jul 5, 2023
1 parent 597f21c commit 61927c4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Fragment } from 'react'

import type { UserTrackMetadata } from '@audius/common'
import { SquareSizes, useGetSuggestedTracks } from '@audius/common'
import { View } from 'react-native'
Expand Down Expand Up @@ -114,13 +116,10 @@ export const SuggestedTracks = () => {
<View>
<Divider />
{suggestedTracks?.map((suggestedTrack) => (
<>
<SuggestedTrack
key={suggestedTrack.track_id}
track={suggestedTrack}
/>
<Fragment key={suggestedTrack.track_id}>
<SuggestedTrack track={suggestedTrack} />
<Divider />
</>
</Fragment>
))}
</View>
<TextButton
Expand Down
4 changes: 2 additions & 2 deletions packages/web/src/components/collection/desktop/EditButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type EditButtonProps = Partial<ButtonProps> & {
}

export const EditButton = (props: EditButtonProps) => {
const { collectionId } = props
const { collectionId, ...other } = props
const dispatch = useDispatch()

const handleEdit = useCallback(
Expand All @@ -30,7 +30,7 @@ export const EditButton = (props: EditButtonProps) => {
text={messages.edit}
leftIcon={<IconPencil />}
onClick={handleEdit}
{...props}
{...other}
/>
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@
position: absolute;
left: calc(var(--unit-3) * -1);
}

.tooltip :global(.ant-tooltip-arrow) {
left: var(--unit-6);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ const messages = { recentlyUpdatedTooltip: 'Recently Updated' }
export const PlaylistUpdateDot = () => {
return (
<Tooltip
className={styles.tooltip}
shouldWrapContent={true}
shouldDismissOnClick={false}
mouseEnterDelay={0.1}
text={messages.recentlyUpdatedTooltip}
placement='right'
>
<UpdateDot className={styles.root} />
</Tooltip>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Fragment } from 'react'

import {
SquareSizes,
Status,
Expand Down Expand Up @@ -67,12 +69,12 @@ export const SuggestedTracks = () => {
<LoadingSpinner className={styles.loading} />
) : null}
{suggestedTracks?.map((suggestedTrack) => (
<>
<li key={suggestedTrack.track_id}>
<Fragment key={suggestedTrack.track_id}>
<li>
<SuggestedTrack track={suggestedTrack} />
</li>
{divider}
</>
</Fragment>
))}
{divider}
</ul>
Expand Down

0 comments on commit 61927c4

Please sign in to comment.