Skip to content

Commit

Permalink
Update ToS & Privacy Policy in UI (#1467)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aimichelle authored Jun 12, 2023
1 parent 1a0f465 commit 6ade5cb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/ui/src/components/footer/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { createStyles, makeStyles } from '@mui/styles';
import { Link } from 'react-router-dom';

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

const useDefaultStyles = makeStyles(({ spacing, typography, breakpoints, palette }: Theme) => createStyles({
root: {
Expand Down Expand Up @@ -76,12 +77,7 @@ export const Footer = React.memo<FooterProps>(({
return (
<div className={classes.root}>
<div className={classes.left}>
<a href='https://pixielabs.ai/terms/' className={classes.text}>
Terms & Conditions
</a>
<a href='https://pixielabs.ai/privacy' className={classes.text}>
Privacy Policy
</a>
<TermsAndPrivacy classes={classes} />
<div className={classes.text}><VersionInfo /></div>
</div>
<div className={classes.right}>
Expand Down
31 changes: 31 additions & 0 deletions src/ui/src/configurables/base/tos-privacy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as React from 'react';

export const TermsAndPrivacy = React.memo<{ classes: Record<'text', string> }>(({ classes }) => {
return (<>
<a href='https://www.linuxfoundation.org/terms' className={classes.text}>
Terms & Conditions
</a>
<a href='https://www.linuxfoundation.org/privacy' className={classes.text}>
Privacy Policy
</a>
</>);
});
TermsAndPrivacy.displayName = 'TermsAndPrivacy';

0 comments on commit 6ade5cb

Please sign in to comment.