Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/koni/dev/issue-212'…
Browse files Browse the repository at this point in the history
… into story-protocol-od-dev
  • Loading branch information
lw-cdm committed Dec 2, 2024
2 parents eac029f + 4be1845 commit 4a96429
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,16 @@ function Component ({ airdropNftInfo, className, onClickLogo, onClickNameArea }:
</div>

<div className='__airdrop-token'>
<span className='__airdrop-token-value'>{toDisplayNumber(airdropNftInfo.total_badges)}</span>
<span className='__airdrop-token-symbol'>{
airdropNftInfo.total_badges > 1 ? t('badges') : t('badge')
}</span>
{!airdropNftInfo.sub_title
? (<>
<span className='__airdrop-token-value'>{toDisplayNumber(airdropNftInfo.total_badges)}</span><span
className='__airdrop-token-symbol'
>{airdropNftInfo.total_badges > 1 ? t('badges') : t('badge')}</span>
</>)
: (
<span className='__airdrop-token-sub-title'>{airdropNftInfo.sub_title}</span>
)
}
</div>
</div>

Expand Down Expand Up @@ -265,6 +271,10 @@ const MintNftHeader = styled(Component)<Props>(({ theme: { extendToken, token }
color: token.colorTextDark3
},

'.__airdrop-token-sub-title': {
color: token.colorTextDark3
},

'.__share-button-wrapper': {
alignSelf: 'stretch'
},
Expand Down
5 changes: 3 additions & 2 deletions packages/extension-koni-ui/src/connector/booka/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ export class BookaSdk {
const eligibilityList = [
{
id: 1,
name: 'Hunt at least 19,999 accumulated SP from 07 Nov to 05 Dec',
name: 'Hunt at least 19,999 SP accumulated from 07 Nov to 05 Dec',
start: getUCTPlus7('2024-11-07 07:00'),
end: getUCTPlus7('2024-12-05 07:00')
},
Expand All @@ -986,6 +986,7 @@ export class BookaSdk {
start_mint: getUCTPlus7('2024-12-06 10:00'),
network: 'Polkadot',
total_badges: 5000,
sub_title: 'Phase 2',
symbol: 'badge',
// decimal: number;
// method: string;
Expand Down Expand Up @@ -1026,7 +1027,7 @@ export class BookaSdk {
</h2>
<p>
👉Hunt at least 19,999 accumulated SP from Nov 07 to Dec 05
👉Hunt at least 19,999 SP accumulated from Nov 07 to Dec 05
</p>
<p>
Expand Down
1 change: 1 addition & 0 deletions packages/extension-koni-ui/src/connector/booka/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export interface IAirdropNftMinting {
end_mint?: Date;
network: string;
total_badges: number;
sub_title?: string;
symbol: string;
// decimal: number;
// method: string;
Expand Down

0 comments on commit 4a96429

Please sign in to comment.