-
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.
* Update the display of daily rewards * refactor: update CampaignTableRow to use Dropdown for blacklist and whitelist, and improve layout with Divider * wip handling rewards
- Loading branch information
Showing
19 changed files
with
380 additions
and
146 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import type { Campaign } from "@merkl/api"; | ||
import moment from "moment"; | ||
import { Divider, Group, Icon, Text } from "packages/dappkit/src"; | ||
|
||
export type IProps = { | ||
campaign: Campaign; | ||
}; | ||
|
||
export default function CampaignTooltipDates({ campaign }: IProps) { | ||
return ( | ||
<> | ||
<Group> | ||
<Icon remix={"RiCalendar2Line"} /> | ||
<Text look="bold">Campaign dates</Text> | ||
<Divider look="soft" horizontal /> | ||
<Group className="flex-col"> | ||
<Group> | ||
<Text size="sm" look={"bold"}> | ||
Start | ||
</Text> | ||
<Text size="sm"> | ||
{moment.unix(Number(campaign.startTimestamp)).format("DD MMMM YYYY ha (UTC Z)").replace("+", "+ ")} | ||
</Text> | ||
</Group> | ||
<Group> | ||
<Text size="sm" look={"bold"}> | ||
End | ||
</Text> | ||
<Text size="sm">{moment.unix(Number(campaign.endTimestamp)).format("DD MMMM YYYY ha (UTC Z)")}</Text> | ||
</Group> | ||
</Group> | ||
</Group> | ||
</> | ||
); | ||
} |
Oops, something went wrong.