mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-10 01:19:53 +01:00
* feat: add bootstrap endpoint redux integration * fix: remove useEffect from app * feat: add path provider * feat: browser router * fix: delete path formatter * fix: return absolute path if no basepath * fix: format seenURI * feat: get bootstrap uri from html * fix: remove unused imports * fix: remove initial loading call * fix: wrap logout in formatApiPath * feat: import logo * feat: remove accessor from receiveConfig * fix: update tests * fix: update asset paths * fix: remove data from app * fix: revert moving access provider * fix: remove build watch * fix: remove console logs * fix: update asset paths * fix: remove path logic from base64 * fix: remove unused import * set uiconfig * change notification text * fix: match uiConfig with expected format * feat: add proclamation * fix: move proclamation * fix: remove unused imports * fix: add target _blank * fix: allow optional toast * fix: return empty string if default value is present * fix: set basepath to empty string if it matches default
56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
import { FC } from 'react';
|
|
|
|
import { Typography, useTheme } from '@material-ui/core';
|
|
import Gradient from '../../common/Gradient/Gradient';
|
|
import { ReactComponent as StarIcon } from '../../../assets/icons/star.svg';
|
|
import { ReactComponent as RightToggleIcon } from '../../../assets/icons/toggleRight.svg';
|
|
import { ReactComponent as LeftToggleIcon } from '../../../assets/icons/toggleLeft.svg';
|
|
|
|
import { useStyles } from './StandaloneBanner.styles';
|
|
import ConditionallyRender from '../../common/ConditionallyRender';
|
|
|
|
interface IStandaloneBannerProps {
|
|
showStars?: boolean;
|
|
title: string;
|
|
}
|
|
|
|
const StandaloneBanner: FC<IStandaloneBannerProps> = ({
|
|
showStars = false,
|
|
title,
|
|
children,
|
|
}) => {
|
|
const theme = useTheme();
|
|
const styles = useStyles();
|
|
return (
|
|
<Gradient from={theme.palette.primary.main} to={'#173341'}>
|
|
<div className={styles.container}>
|
|
<Typography variant="h1" className={styles.title}>
|
|
{title}
|
|
</Typography>
|
|
{children}
|
|
|
|
<ConditionallyRender
|
|
condition={showStars}
|
|
show={
|
|
<>
|
|
<StarIcon className={styles.midLeftStarTwo} />
|
|
<StarIcon className={styles.midLeftStar} />
|
|
<StarIcon className={styles.midRightStar} />
|
|
<StarIcon className={styles.bottomRightStar} />
|
|
<StarIcon className={styles.bottomStar} />
|
|
</>
|
|
}
|
|
/>
|
|
</div>
|
|
|
|
<div className={styles.switchesContainer}>
|
|
<RightToggleIcon className={styles.switchIcon} />
|
|
<br></br>
|
|
<LeftToggleIcon className={styles.switchIcon} />
|
|
</div>
|
|
</Gradient>
|
|
);
|
|
};
|
|
|
|
export default StandaloneBanner;
|