Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Sep 21, 2023
1 parent 11c0b0c commit 5b010a0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Announcement/PrivateAnnoucement/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const mapIcon: Partial<{ [type in PrivateAnnouncementType]: ReactNode }> = {
[PrivateAnnouncementType.LIMIT_ORDER]: <LimitOrderIcon />,
[PrivateAnnouncementType.ELASTIC_POOLS]: <LiquidityIcon />,
[PrivateAnnouncementType.KYBER_AI]: <ApeIcon size={18} />,
[PrivateAnnouncementType.KYBER_AI_WATCH_LIST]: <ApeIcon size={18} />,
[PrivateAnnouncementType.KYBER_AI_WATCHLIST]: <ApeIcon size={18} />,
[PrivateAnnouncementType.PRICE_ALERT]: <AlarmIcon style={{ width: 17, height: 17 }} />,
[PrivateAnnouncementType.DIRECT_MESSAGE]: <Bell style={{ width: 17, height: 17 }} />,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ANNOUNCEMENT_MAP_IN_CENTER = {
[PrivateAnnouncementType.BRIDGE_ASSET]: Bridge,
[PrivateAnnouncementType.CROSS_CHAIN]: CrossChain,
[PrivateAnnouncementType.KYBER_AI]: KyberAI,
[PrivateAnnouncementType.KYBER_AI_WATCH_LIST]: KyberAIWatchlist,
[PrivateAnnouncementType.KYBER_AI_WATCHLIST]: KyberAIWatchlist,
[PrivateAnnouncementType.PRICE_ALERT]: PriceAlert,
[PrivateAnnouncementType.DIRECT_MESSAGE]: PrivateMessage,
} as PrivateAnnouncementCenterMap
Expand Down
4 changes: 2 additions & 2 deletions src/components/Announcement/PrivateAnnoucement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ const ANNOUNCEMENT_MAP: PrivateAnnouncementMap = {
[PrivateAnnouncementType.CROSS_CHAIN]: InboxItemCrossChain,
[PrivateAnnouncementType.PRICE_ALERT]: InboxItemPriceAlert,
[PrivateAnnouncementType.DIRECT_MESSAGE]: InboxItemPrivateMessage,
[PrivateAnnouncementType.KYBER_AI_WATCH_LIST]: InboxItemKyberAIWatchList,
[PrivateAnnouncementType.KYBER_AI_WATCHLIST]: InboxItemKyberAIWatchList,
} as PrivateAnnouncementMap

export const PRIVATE_ANN_TITLE: Partial<{ [type in PrivateAnnouncementType]: string }> = {
[PrivateAnnouncementType.BRIDGE_ASSET]: t`Cross-Chain Bridge`,
[PrivateAnnouncementType.CROSS_CHAIN]: t`Cross-Chain Swaps`,
[PrivateAnnouncementType.LIMIT_ORDER]: t`Limit Orders`,
[PrivateAnnouncementType.KYBER_AI]: t`Top Tokens by KyberAI`,
[PrivateAnnouncementType.KYBER_AI_WATCH_LIST]: t`KyberAI Watchlist`,
[PrivateAnnouncementType.KYBER_AI_WATCHLIST]: t`KyberAI Watchlist`,
[PrivateAnnouncementType.PRICE_ALERT]: t`Price Alerts`,
[PrivateAnnouncementType.ELASTIC_POOLS]: t`Elastic Liquidity Positions`,
[PrivateAnnouncementType.DIRECT_MESSAGE]: t`Notification`,
Expand Down
2 changes: 1 addition & 1 deletion src/components/Announcement/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export enum PrivateAnnouncementType {
LIMIT_ORDER = 'LIMIT_ORDER',
BRIDGE_ASSET = 'BRIDGE_ASSET',
KYBER_AI = 'KYBER_AI',
KYBER_AI_WATCH_LIST = 'KYBER_AI_WATCH_LIST', // todo
KYBER_AI_WATCHLIST = 'KYBER_AI_WATCHLIST',
ELASTIC_POOLS = 'ELASTIC_POOLS',
CROSS_CHAIN = 'CROSS_CHAIN',
PRICE_ALERT = 'PRICE_ALERT',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/NotificationCenter/Menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const menuItems: MenuItemType[] = [
},
{
route: PROFILE_MANAGE_ROUTES.KYBER_AI_WATCH_LIST,
type: PrivateAnnouncementType.KYBER_AI_WATCH_LIST,
type: PrivateAnnouncementType.KYBER_AI_WATCHLIST,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion src/pages/NotificationCenter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function NotificationCenter() {
/>
<Route
path={PROFILE_MANAGE_ROUTES.KYBER_AI_WATCH_LIST}
element={<PrivateAnnouncement type={PrivateAnnouncementType.KYBER_AI_WATCH_LIST} />}
element={<PrivateAnnouncement type={PrivateAnnouncementType.KYBER_AI_WATCHLIST} />}
/>
<Route path={PROFILE_MANAGE_ROUTES.CREATE_ALERT} element={<CreateAlert />} />

Expand Down

0 comments on commit 5b010a0

Please sign in to comment.