Skip to content

Commit 39b096a

Browse files
authored
Merge pull request #196 from oasisprotocol/ml/privacy-policy
home: Add privacy policy link
2 parents 7ef0747 + c9cce1f commit 39b096a

File tree

10 files changed

+36
-10
lines changed

10 files changed

+36
-10
lines changed

discover/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
interface ImportMetaEnv {
1112
VITE_WALLET_CONNECT_PROJECT_ID: string

home/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
interface ImportMetaEnv {
1112
VITE_WALLET_CONNECT_PROJECT_ID: string

home/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ export default defineConfig({
1818
GITHUB_REPOSITORY_URL: JSON.stringify('https://github.com/oasisprotocol/rose/'),
1919
OASIS_HOME_PAGE_URL: JSON.stringify('https://oasisprotocol.org/'),
2020
OASIS_DOCS_PAGE_URL: JSON.stringify('https://docs.oasis.io/'),
21+
PRIVACY_POLICY_URL: JSON.stringify('https://oasisprotocol.org/privacy-policy'),
2122
},
2223
})

move/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
declare module '@metamask/jazzicon' {
1112
const jazzicon: (diameter: number, seed: number) => HTMLDivElement

stake/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
interface ImportMetaEnv {
1112
VITE_WALLET_CONNECT_PROJECT_ID: string

subcall/src/vite-env.d.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1 @@
11
/// <reference types="vite/client" />
2-
3-
interface ImportMetaEnv {
4-
VITE_SUBCALL_ADDRESS: string
5-
VITE_PARATIME_RUNTIME_ID: string
6-
VITE_GRPC_URL: string
7-
}
8-
9-
interface ImportMeta {
10-
readonly env: ImportMetaEnv
11-
}

ui/src/core/components/Sidebar/index.module.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,21 @@
8787
opacity: 0;
8888
}
8989

90+
.privacyPolicy {
91+
display: inline-block;
92+
padding: 1.5rem 2rem;
93+
margin-top: auto;
94+
color: var(--white);
95+
text-decoration: none;
96+
font-size: 12px;
97+
font-weight: 400;
98+
line-height: 18px;
99+
100+
&:hover {
101+
text-decoration: underline;
102+
}
103+
}
104+
90105
@media screen and (max-width: 1023px) {
91106
.sidebarLayout {
92107
flex-direction: column;
@@ -149,4 +164,9 @@
149164
opacity: 0.5;
150165
}
151166
}
167+
168+
.privacyPolicy {
169+
width: 100%;
170+
text-align: center;
171+
}
152172
}

ui/src/core/components/Sidebar/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ export function SidebarCmp({ navItem }: Props) {
6262
</div>
6363

6464
{navItem}
65+
66+
<a
67+
className={classes.privacyPolicy}
68+
href={PRIVACY_POLICY_URL}
69+
rel="noopener noreferrer"
70+
target="_blank"
71+
>
72+
Privacy policy
73+
</a>
6574
</nav>
6675
<div className={classes.main}>
6776
<Outlet />

ui/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
interface ImportMetaEnv {
1112
VITE_WALLET_CONNECT_PROJECT_ID: string

wrap/src/vite-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ declare const BUILD_DATETIME: number
66
declare const GITHUB_REPOSITORY_URL: string
77
declare const OASIS_HOME_PAGE_URL: string
88
declare const OASIS_DOCS_PAGE_URL: string
9+
declare const PRIVACY_POLICY_URL: string
910

1011
interface ImportMetaEnv {
1112
VITE_WALLET_CONNECT_PROJECT_ID: string

0 commit comments

Comments
 (0)