mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
504a4af274
* refactor: extract SegmentEmpty component * refactor: extract CreateSegmentButton component * refactor: extract EditSegmentButton component * refactor: extract RemoveSegmentButton component * refactor: normalize Created table header text * refactor: port segments list to react-table * fix: improve row text height in table row * fix: update test snapshots * refactor table cell with search highlight * fix: update after review Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Co-authored-by: Tymoteusz Czech <tymek+gpg@getunleash.ai>
22 lines
791 B
TypeScript
22 lines
791 B
TypeScript
import { Typography } from '@mui/material';
|
|
import { useStyles } from 'component/segments/SegmentEmpty/SegmentEmpty.styles';
|
|
import { Link } from 'react-router-dom';
|
|
|
|
export const SegmentEmpty = () => {
|
|
const { classes } = useStyles();
|
|
|
|
return (
|
|
<div className={classes.empty}>
|
|
<Typography className={classes.title}>No segments yet!</Typography>
|
|
<p className={classes.subtitle}>
|
|
Segment makes it easy for you to define who should be exposed to
|
|
your feature. The segment is often a collection of constraints
|
|
and can be reused.
|
|
</p>
|
|
<Link to="/segments/create" className={classes.paramButton}>
|
|
Create your first segment
|
|
</Link>
|
|
</div>
|
|
);
|
|
};
|