-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/whitelist_munual' into develop
- Loading branch information
Showing
14 changed files
with
542 additions
and
76 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
45 changes: 45 additions & 0 deletions
45
src/modules/PublicSale/leaderBoardVisual/AvatarItemTemp/index.tsx
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import s from './styles.module.scss'; | ||
import React, { forwardRef, useRef } from 'react'; | ||
import { ILeaderBoardPoint } from '@/interfaces/leader-board-point'; | ||
import { PlaceImage } from '@/modules/PublicSale/leaderBoardVisual/AvatarItem'; | ||
|
||
interface IProps { | ||
data: ILeaderBoardPoint, | ||
isShowName?: boolean | ||
isYou?: boolean | ||
onCompleted?: ()=>void | ||
} | ||
|
||
const AvatarItemTemp = forwardRef((props: IProps, ref: any) => { | ||
const { data, isShowName, isYou, onCompleted, ...rest } = props; | ||
const refInertMoney = useRef<HTMLParagraphElement>(null); | ||
|
||
const renderContent = () => { | ||
return ( | ||
<div className={s.avatarItem_inner}> | ||
<div | ||
className={s.avatarItem_avatar} | ||
// onClick={() => { | ||
// window.open(`https://twitter.com/${data?.twitter_username}`); | ||
// }} | ||
> | ||
<PlaceImage /> | ||
</div> | ||
<div className={s.meta}> | ||
<p className={s.price} ref={refInertMoney}>$0</p> | ||
|
||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
return ( | ||
<div | ||
className={`${s.avatarItem} ${isYou && s.isYou} ${data?.levelRender !== undefined && 'level-' + data?.levelRender} js-avatarItem`} | ||
ref={ref} {...rest}> | ||
<>{renderContent()}</> | ||
</div> | ||
); | ||
}); | ||
|
||
export default AvatarItemTemp; |
Oops, something went wrong.