Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
thechefpenguin committed Sep 30, 2024
1 parent bef0c36 commit 006083b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const SettingsModalV2 = ({ onDismiss, mode }: SettingsModalV2Props) => {
<>
<MotionModal
minWidth="480px"
headerPadding="0px"
headerPadding="6px 24px 0"
title={
activeTabIndex === 2 ? (
<TabContent type="to_right">
Expand Down
5 changes: 3 additions & 2 deletions apps/web/src/components/Menu/GlobalSettings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { ButtonProps, CogIcon, Flex, IconButton, useModal } from '@pancakeswap/uikit'

import { SettingsModalV2 } from './SettingsModalV2'
import { SettingsMode } from './types'

type Props = {
color?: string
mr?: string
mode?: string
mode?: SettingsMode
} & ButtonProps

const GlobalSettings = ({ color, mr = '8px', mode, ...rest }: Props) => {
const [onPresentSettingsModal] = useModal(<SettingsModalV2 mode={mode} />)
const [onPresentSettingsModal] = useModal(<SettingsModalV2 mode={mode ?? SettingsMode.GLOBAL} />)

return (
<Flex>
Expand Down
2 changes: 1 addition & 1 deletion packages/uikit/src/widgets/Modal/MotionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const MotionModal: React.FC<React.PropsWithChildren<ModalProps>> = ({
>
<ModalHeader
background={getThemeValue(theme, `colors.${headerBackground}`, headerBackground)}
p={headerPadding}
style={{ padding: headerPadding }}
headerBorderColor={headerBorderColor}
>
<ModalTitle>
Expand Down

0 comments on commit 006083b

Please sign in to comment.