123456789101112131415161718192021222324252627282930313233343536 |
- import styled from '@emotion/styled';
- import {t} from 'app/locale';
- import ReleaseListDropdown from './releaseListDropdown';
- import {DisplayOption} from './utils';
- const displayOptions = {
- [DisplayOption.SESSIONS]: {label: t('Sessions')},
- [DisplayOption.USERS]: {label: t('Users')},
- };
- type Props = {
- selected: DisplayOption;
- onSelect: (key: string) => void;
- };
- function ReleaseListDisplayOptions({selected, onSelect}: Props) {
- return (
- <StyledReleaseListDropdown
- label={t('Display')}
- options={displayOptions}
- selected={selected}
- onSelect={onSelect}
- />
- );
- }
- export default ReleaseListDisplayOptions;
- const StyledReleaseListDropdown = styled(ReleaseListDropdown)`
- z-index: 1;
- @media (max-width: ${p => p.theme.breakpoints[2]}) {
- order: 3;
- }
- `;
|