Skip to content

Commit 6ade5cb

Browse files
authored
Update ToS & Privacy Policy in UI (#1467)
Summary: The current links are outdated, and should instead point to the Linux Foundation's ToS and privacy policy. Relevant Issues: N/A Type of change: /kind cleanup Test Plan: Deploy testing cloud and check footer. --------- Signed-off-by: Michelle Nguyen <michellenguyen@pixielabs.ai>
1 parent 1a0f465 commit 6ade5cb

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

src/ui/src/components/footer/footer.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { createStyles, makeStyles } from '@mui/styles';
2424
import { Link } from 'react-router-dom';
2525

2626
import { VersionInfo } from 'app/components/version-info/version-info';
27+
import { TermsAndPrivacy } from 'configurable/tos-privacy';
2728

2829
const useDefaultStyles = makeStyles(({ spacing, typography, breakpoints, palette }: Theme) => createStyles({
2930
root: {
@@ -76,12 +77,7 @@ export const Footer = React.memo<FooterProps>(({
7677
return (
7778
<div className={classes.root}>
7879
<div className={classes.left}>
79-
<a href='https://pixielabs.ai/terms/' className={classes.text}>
80-
Terms & Conditions
81-
</a>
82-
<a href='https://pixielabs.ai/privacy' className={classes.text}>
83-
Privacy Policy
84-
</a>
80+
<TermsAndPrivacy classes={classes} />
8581
<div className={classes.text}><VersionInfo /></div>
8682
</div>
8783
<div className={classes.right}>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2018- The Pixie Authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
* SPDX-License-Identifier: Apache-2.0
17+
*/
18+
19+
import * as React from 'react';
20+
21+
export const TermsAndPrivacy = React.memo<{ classes: Record<'text', string> }>(({ classes }) => {
22+
return (<>
23+
<a href='https://www.linuxfoundation.org/terms' className={classes.text}>
24+
Terms & Conditions
25+
</a>
26+
<a href='https://www.linuxfoundation.org/privacy' className={classes.text}>
27+
Privacy Policy
28+
</a>
29+
</>);
30+
});
31+
TermsAndPrivacy.displayName = 'TermsAndPrivacy';

0 commit comments

Comments
 (0)