Skip to content

Commit

Permalink
Merge pull request #319 from LinkdropHQ/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spacehaz authored Jul 22, 2024
2 parents 9e1279c + cae1e72 commit afd6539
Show file tree
Hide file tree
Showing 5 changed files with 423 additions and 394 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"immer": "^9.0.6",
"is-android": "^1.0.1",
"is-ios": "^2.1.0",
"linkdrop-sdk": "^2.1.3",
"linkdrop-sdk": "^2.1.4",
"linkdrop-ui": "^0.0.44",
"minimatch": "^3.0.5",
"node-forge": "^1.3.0",
Expand Down
2 changes: 0 additions & 2 deletions src/components/pages/claim-page/claiming-finished/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { connect } from 'react-redux'
import {
TitleComponent,
ButtonsContainer,
ScreenButton,
TokenImageLarge,
TokenImageContainer,
DoneIcon,
Expand Down Expand Up @@ -51,7 +50,6 @@ const mapStateToProps = ({

type ReduxType = ReturnType<typeof mapStateToProps>


const defineTitle = (type: TDropType | null, email?: string, claiming_finished_description?: string) => {
if (claiming_finished_description) { return claiming_finished_description }
if (email) {
Expand Down
12 changes: 6 additions & 6 deletions src/data/store/reducers/drop/async-actions/get-link-by-code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default function getLinkByCode(
claiming_finished_description,
claiming_finished_button_title,
claiming_finished_button_url,
claiming_finished_button_on,
available_wallets
} : TLinkParams = data

Expand Down Expand Up @@ -90,12 +91,11 @@ export default function getLinkByCode(
dispatch(actionsDrop.setAvailableWallets(available_wallets || []))
dispatch(actionsDrop.setLinkKey(linkKey))

// if (available_wallets.length === 1 && available_wallets[0] === 'coinbase_wallet') {
// dispatch(actionsDrop.setAutoclaim(true))
// }


if (claiming_finished_button_title && claiming_finished_button_url) {
if (
claiming_finished_button_title &&
claiming_finished_button_url &&
claiming_finished_button_on
) {
dispatch(actionsDrop.setClaimingFinishedButtonTitle(claiming_finished_button_title))
dispatch(actionsDrop.setClaimingFinishedButtonURL(claiming_finished_button_url))
}
Expand Down
1 change: 1 addition & 0 deletions src/types/link-params.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ export type TLinkParams = {
claiming_finished_description?: string
claiming_finished_button_title?: string
claiming_finished_button_url?: string
claiming_finished_button_on?: boolean
available_wallets?: string[]
}
Loading

0 comments on commit afd6539

Please sign in to comment.