diff --git a/assets/sidebar/side-notch.svg b/assets/sidebar/side-notch.svg index f1143114be..e4a88d9fc8 100644 --- a/assets/sidebar/side-notch.svg +++ b/assets/sidebar/side-notch.svg @@ -1,8 +1,8 @@ - + - + diff --git a/packages/components/navigation/components/SideNotch.tsx b/packages/components/navigation/components/SideNotch.tsx index efc84d7de0..2baba0f453 100644 --- a/packages/components/navigation/components/SideNotch.tsx +++ b/packages/components/navigation/components/SideNotch.tsx @@ -1,26 +1,33 @@ import React from "react"; -import { StyleSheet, View, ViewStyle } from "react-native"; +import { View, ViewStyle } from "react-native"; import SideNotchSVG from "../../../../assets/sidebar/side-notch.svg"; import { SVG } from "../../SVG"; -export const SideNotch: React.FC<{ style?: ViewStyle }> = ({ style }) => { +import { primaryColor, rakkiYellow } from "@/utils/style/colors"; + +export const SideNotch: React.FC<{ + sidebarItemId?: string; + style?: ViewStyle; +}> = ({ sidebarItemId, style }) => { return ( - - + + ); }; - -// FIXME: remove StyleSheet.create -// eslint-disable-next-line no-restricted-syntax -const styles = StyleSheet.create({ - container: { - position: "absolute", - flex: 1, - flexDirection: "row", - left: 0, - top: 0, - bottom: 0, - }, -}); diff --git a/packages/components/navigation/components/SidebarButton.tsx b/packages/components/navigation/components/SidebarButton.tsx index 9fee2e96f0..39999a5540 100644 --- a/packages/components/navigation/components/SidebarButton.tsx +++ b/packages/components/navigation/components/SidebarButton.tsx @@ -16,6 +16,7 @@ import { neutral33, neutral77, primaryColor, + rakkiYellow, secondaryColor, } from "../../../utils/style/colors"; import { fontRegular12 } from "../../../utils/style/fonts"; @@ -33,6 +34,7 @@ import { useAppRoute } from "@/hooks/navigation/useAppRoute"; export interface SidebarButtonProps extends SidebarType { onPress?: (routeName: SidebarType["route"]) => void; iconSize?: number; + id: string; } export const SidebarButton: React.FC = ({ @@ -42,6 +44,7 @@ export const SidebarButton: React.FC = ({ route, iconSize = 28, nested, + id, }) => { const { isSidebarExpanded } = useSidebar(); const { name: currentRouteName } = useAppRoute(); @@ -104,11 +107,18 @@ export const SidebarButton: React.FC = ({ {({ hovered }) => ( - {isSelected && } + {isSelected && ( + + )} diff --git a/packages/dapp-root/Root.tsx b/packages/dapp-root/Root.tsx index 452718a4fe..d258efa0ca 100644 --- a/packages/dapp-root/Root.tsx +++ b/packages/dapp-root/Root.tsx @@ -246,6 +246,7 @@ const DappStoreApps: React.FC = () => { "teritori-staking", "teritori-explorer", "mintscan", + "rakki", ]; delete dAppStoreValues.bookmarks; delete dAppStoreValues["coming-soon"]; diff --git a/packages/screens/DAppStore/query/getFromFile.ts b/packages/screens/DAppStore/query/getFromFile.ts index 75106ba2fe..9da6cb1b46 100644 --- a/packages/screens/DAppStore/query/getFromFile.ts +++ b/packages/screens/DAppStore/query/getFromFile.ts @@ -18,6 +18,7 @@ import osmosisSVG from "@/assets/icons/networks/osmosis.svg"; import teritoriSVG from "@/assets/icons/networks/teritori.svg"; import pathwar from "@/assets/icons/pathwar.svg"; import projectsProgramSVG from "@/assets/icons/projects-program.svg"; +import rakki from "@/assets/icons/rakki-ticket.svg"; import otherAppsIcon from "@/assets/icons/random-goods-icon.svg"; import riot from "@/assets/icons/rioters-game.svg"; import staking from "@/assets/icons/staking.svg"; @@ -239,6 +240,16 @@ export function getAvailableApps(): dAppGroup { selectedByDefault: true, alwaysOn: false, }, + rakki: { + id: "rakki", + icon: rakki, + title: "RAKKi", + description: "Automated lottery", + route: "Rakki", + groupKey: "top-apps", + selectedByDefault: true, + alwaysOn: false, + }, }, }, explorers: {