diff --git a/package.json b/package.json index f4d1cedb8c..6bc2db2c8f 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,7 @@ "@atproto/api": "^0.18.21", "@bitdrift/react-native": "^0.6.8", "@braintree/sanitize-url": "^6.0.2", - "@bsky.app/alf": "^0.1.6", + "@bsky.app/alf": "^0.1.7", "@bsky.app/expo-image-crop-tool": "^0.5.0", "@bsky.app/react-native-mmkv": "2.12.5", "@discord/bottom-sheet": "bluesky-social/react-native-bottom-sheet", diff --git a/src/components/Admonition.tsx b/src/components/Admonition.tsx index ed644cd374..21261a329f 100644 --- a/src/components/Admonition.tsx +++ b/src/components/Admonition.tsx @@ -9,10 +9,6 @@ import {Warning_Stroke2_Corner0_Rounded as WarningIcon} from '#/components/icons import {Text as BaseText, type TextProps} from '#/components/Typography' import {EmojiSad_Stroke2_Corner0_Rounded as EmojiSadIcon} from './icons/Emoji' -export const colors = { - warning: '#FFC404', -} - type Context = { type: 'info' | 'tip' | 'warning' | 'error' | 'apology' } @@ -35,7 +31,7 @@ export function Icon() { const fill = { info: t.atoms.text_contrast_medium.color, tip: t.palette.primary_500, - warning: colors.warning, + warning: t.palette.yellow, error: t.palette.negative_500, apology: t.atoms.text_contrast_medium.color, }[type] @@ -110,7 +106,7 @@ export function Outer({ const borderColor = { info: t.atoms.border_contrast_high.borderColor, tip: t.palette.primary_500, - warning: colors.warning, + warning: t.palette.yellow, error: t.palette.negative_500, apology: t.atoms.border_contrast_high.borderColor, }[type] diff --git a/src/screens/PostThread/components/ThreadItemAnchor.tsx b/src/screens/PostThread/components/ThreadItemAnchor.tsx index 643f926f1b..b7d0e65d38 100644 --- a/src/screens/PostThread/components/ThreadItemAnchor.tsx +++ b/src/screens/PostThread/components/ThreadItemAnchor.tsx @@ -38,7 +38,6 @@ import { REPLY_LINE_WIDTH, } from '#/screens/PostThread/const' import {atoms as a, useTheme} from '#/alf' -import {colors} from '#/components/Admonition' import {Button} from '#/components/Button' import {DebugFieldDisplay} from '#/components/DebugFieldDisplay' import {CalendarClock_Stroke2_Corner0_Rounded as CalendarClockIcon} from '#/components/icons/CalendarClock' @@ -647,8 +646,6 @@ function BackdatedPostIndicator({post}: {post: AppBskyFeedDefs.PostView}) { if (!isBackdated) return null - const orange = colors.warning - return ( <>