Skip to content

Commit

Permalink
fix: 🐛 fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chef-ryan committed Jan 14, 2025
1 parent d7d0f0b commit 715e3b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/web/src/components/PhishingWarningBanner/SolvStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import { VerticalDivider } from '@pancakeswap/widgets-internal'

const TextHighlight = ({ text, highlights }: { text: string; highlights: string[] }) => {
const prts = text.split(new RegExp(`(${highlights.join('|')})`, 'g'))
return prts.map((prt) => {
return prts.map((prt, i) => {
const key = `${prt}-${i}`
if (highlights.includes(prt)) {
return (
<Text bold as="span" color="#FCC631" fontSize={['12px', '12px', '14px']} key={`${prt}-${i}`}>
<Text bold as="span" color="#FCC631" fontSize={['12px', '12px', '14px']} key={key}>
{prt}
</Text>
)
}
return (
<Text bold as="span" color="#FFFFFF" fontSize={['12px', '12px', '14px']} key={`${prt}-${i}`}>
<Text bold as="span" color="#FFFFFF" fontSize={['12px', '12px', '14px']} key={key}>
{prt}
</Text>
)
Expand Down

0 comments on commit 715e3b5

Please sign in to comment.