-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove touch handlers, allow card switch from top
- Loading branch information
1 parent
1663410
commit d1e4523
Showing
4 changed files
with
10 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ import { Content } from './components/Content'; | |
import { createContext, useContext, useEffect, useRef, useState } from 'react'; | ||
import { | ||
type DynamicBuyButtonContextProps, | ||
type DynamicBuyButtonProps, | ||
type TabContentProps, | ||
TABS, | ||
} from './'; | ||
|
@@ -27,10 +26,7 @@ import { TabsList } from './components/TabsList'; | |
* | ||
* @author Joonas Sandell <[email protected]> | ||
*/ | ||
export const DynamicPayButton = ({ | ||
onCardTouchEnd, | ||
onCardTouchStart, | ||
}: DynamicBuyButtonProps) => { | ||
export const DynamicPayButton = () => { | ||
const [ccv, setCcv] = useState<string>(''); | ||
const [icon, setIcon] = useState(<CreditCard />); | ||
const [loading, setLoading] = useState(false); | ||
|
@@ -112,8 +108,6 @@ export const DynamicPayButton = ({ | |
handleOpen, | ||
inputRef, | ||
loading, | ||
onCardTouchEnd, | ||
onCardTouchStart, | ||
open, | ||
overflow, | ||
selectedTab, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters