c14e57cfd5
* feat: adjust and refactor welcome dialogs * feat: adjust and refactor welcome dialogs - add int tests * feat: adjust and refactor welcome dialogs - small fixes and imprvments * feat: adjust and refactor welcome dialogs - fix a typo * feat: adjust and refactor welcome dialogs - fix a property name * feat: adjust and refactor welcome dialogs - fix an unit test
12 lines
405 B
TypeScript
12 lines
405 B
TypeScript
import { Networks, useEnvironment } from '@vegaprotocol/environment';
|
|
import * as constants from '../constants';
|
|
|
|
export const WelcomeDialogHeader = () => {
|
|
const { VEGA_ENV } = useEnvironment();
|
|
const header =
|
|
VEGA_ENV === Networks.MAINNET
|
|
? constants.MAINNET_WELCOME_HEADER
|
|
: constants.TESTNET_WELCOME_HEADER;
|
|
return <h1 className="mb-6 p-4 text-center text-2xl">{header}</h1>;
|
|
};
|