Skip to content

Commit b79b6cd

Browse files
ddelnanocosmic-copybara
authored andcommitted
Refactor vendor specific signup message to configurables (pixie-io#1962)
Summary: Refactor vendor specific signup message to configurables Relevant Issues: N/A Type of change: /kind clenaup Test Plan: Verified `/auth/signup`'s text is displayed as it was before Signed-off-by: Dom Del Nano <ddelnano@gmail.com> GitOrigin-RevId: 87eb8af
1 parent dffb768 commit b79b6cd

2 files changed

Lines changed: 22 additions & 2 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
export const signupMessage = `Pixie Community is Free Forever.
20+
No Credit Card Needed.`;

src/ui/src/pages/auth/signup.tsx

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

2525
import { AuthBox, SignupMarcom } from 'app/components';
2626
import pixieAnalytics from 'app/utils/analytics';
27+
import { signupMessage } from 'configurable/signup';
2728

2829
import { BasePage } from './base';
2930
import { GetOAuthProvider } from './utils';
@@ -64,8 +65,7 @@ export const SignupPage = React.memo(() => {
6465
toggleURL={`/auth/login${window.location.search}`}
6566
title='Get Started'
6667
// Need to encapsulate so that newline is properly escaped.
67-
body={`Pixie Community is Free Forever.
68-
No Credit Card Needed.`}
68+
body={signupMessage}
6969
buttonCaption='Already have an account?'
7070
buttonText='Login'
7171
showTOSDisclaimer

0 commit comments

Comments
 (0)