Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/customer_dashboard/customer_dashboard.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ SERVER_PORT=3203
NEXT_PUBLIC_OKO_API_ENDPOINT=http://localhost:4200
NEXT_PUBLIC_OKO_DEMO_ENDPOINT=https://demo.oko.app
NEXT_PUBLIC_OKO_DOCS_ENDPOINT=https://docs.oko.app
NEXT_PUBLIC_OKO_FEATURE_REQUEST_ENDPOINT=https://oko-wallet.canny.io/feature-requests
NEXT_PUBLIC_OKO_GET_SUPPORT_ENDPOINT=https://oko-wallet.canny.io/integration-support-inquiries
2 changes: 2 additions & 0 deletions apps/customer_dashboard/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ declare global {
NEXT_PUBLIC_OKO_API_ENDPOINT: string;
NEXT_PUBLIC_OKO_DOCS_ENDPOINT: string;
NEXT_PUBLIC_OKO_DEMO_ENDPOINT: string;
NEXT_PUBLIC_OKO_FEATURE_REQUEST_ENDPOINT: string;
NEXT_PUBLIC_OKO_GET_SUPPORT_ENDPOINT: string;
}
}
}
Expand Down
22 changes: 8 additions & 14 deletions apps/customer_dashboard/src/components/left_bar/left_bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

import { MenuItem } from "@oko-wallet/oko-common-ui/menu";
import { HomeOutlinedIcon } from "@oko-wallet/oko-common-ui/icons/home_outlined";
import { Typography } from "@oko-wallet/oko-common-ui/typography";

import { paths } from "@oko-wallet-ct-dashboard/paths";
import styles from "./left_bar.module.scss";
import { AccountInfoWithSubMenu } from "../account_info_with_sub_menu/account_info_with_sub_menu";
import { ExternalLinkItem } from "../external_link_item/external_link_item";
import { InfoModal } from "../info_modal/info_modal";

export const LeftBar = () => {
return (
Expand All @@ -28,19 +26,15 @@ export const LeftBar = () => {
<AccountInfoWithSubMenu />

<div>
<InfoModal
title="Feature Request"
content="Please reach out to our parternship channel."
renderTrigger={({ onOpen }) => (
<button className={styles.featureRequestButton} onClick={onOpen}>
<Typography size="sm" weight="semibold" color="secondary">
Feature Request
</Typography>
</button>
)}
/>
<ExternalLinkItem
href={process.env.NEXT_PUBLIC_OKO_FEATURE_REQUEST_ENDPOINT}
>
Feature Request
</ExternalLinkItem>

<ExternalLinkItem href="https://help.keplr.app">
<ExternalLinkItem
href={process.env.NEXT_PUBLIC_OKO_GET_SUPPORT_ENDPOINT}
>
Get Support
</ExternalLinkItem>
</div>
Expand Down
2 changes: 2 additions & 0 deletions apps/customer_dashboard/src/envs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ export const envSchema = z.object({
NEXT_PUBLIC_OKO_API_ENDPOINT: z.string(),
NEXT_PUBLIC_OKO_DEMO_ENDPOINT: z.string(),
NEXT_PUBLIC_OKO_DOCS_ENDPOINT: z.string(),
NEXT_PUBLIC_OKO_FEATURE_REQUEST_ENDPOINT: z.string(),
NEXT_PUBLIC_OKO_GET_SUPPORT_ENDPOINT: z.string(),
});