Skip to content

Commit

Permalink
fix: rollup errors (Uniswap#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
just-toby authored Mar 7, 2023
1 parent b6734ed commit 02fe1b1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/components/Swap/Toolbar/Caption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ interface ExpandProps {
expanded: boolean
}

const Expander = ({ expanded }: ExpandProps) => {
function Expander({ expanded }: ExpandProps) {
return <ExpandIcon $expanded={expanded} />
}

Expand Down Expand Up @@ -178,11 +178,13 @@ interface PriceImpactProps {
impact: PriceImpactType
}

export const PriceImpactWarningTooltipContent = () => (
<ThemedText.Caption>
There will be a large difference between your input and output values due to current liquidity.
</ThemedText.Caption>
)
export function PriceImpactWarningTooltipContent() {
return (
<ThemedText.Caption>
There will be a large difference between your input and output values due to current liquidity.
</ThemedText.Caption>
)
}

export function PriceImpact({ impact, expanded }: PriceImpactProps & ExpandProps) {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Swap/Toolbar/ToolbarContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const Context = createContext<{
onToggleOpen: () => null,
})

export const Provider = ({ children }: PropsWithChildren) => {
export function Provider({ children }: PropsWithChildren) {
const [open, setOpen] = useState(false)
const onToggleOpen = () => setOpen((open) => !open)
const collapse = () => setOpen(false)
Expand Down

0 comments on commit 02fe1b1

Please sign in to comment.