Prashant Shahi 642c6c5920
chore: TTL and S3 config related changes (#1201)
* fix: 🐛 convert TTL APIs to async

* chore: add archive support

* chore: update TTL async APIs according to new design

* chore: 🔥 clean removeTTL API

* fix: metrics s3 config

* feat: ttl async with polling (#1195)

* feat: ttl state message change and time unit language changes (#1197)

* test:  update tests for async TTL api

* feat: ttl message info icon (#1202)

* feat: ttl pr review changes

* chore: refractoring

Co-authored-by: makeavish <makeavish786@gmail.com>
Co-authored-by: Pranshu Chittora <pranshu@signoz.io>
Co-authored-by: palash-signoz <palash@signoz.io>
Co-authored-by: Pranay Prateek <pranay@signoz.io>
2022-05-25 18:19:44 +05:30

101 lines
1.6 KiB
TypeScript

import {
Col,
Dropdown as DropDownComponent,
Input as InputComponent,
Typography as TypographyComponent,
} from 'antd';
import styled from 'styled-components';
export const RetentionContainer = styled(Col)`
margin: 0.75rem 0;
`;
export const Input = styled(InputComponent)`
&&& {
height: 2rem;
max-width: 150px;
}
`;
export const Typography = styled(TypographyComponent)`
&&& {
display: flex;
align-items: center;
}
`;
export const ButtonContainer = styled.div`
&&& {
display: flex;
justify-content: flex-end;
width: 50%;
align-items: center;
margin-top: 3rem;
}
`;
export const Dropdown = styled(DropDownComponent)`
&&& {
display: flex;
justify-content: center;
align-items: center;
max-width: 150px;
min-width: 150px;
}
`;
export const TextContainer = styled.div`
&&& {
min-width: 100px;
}
`;
export const ErrorTextContainer = styled.div`
&&& {
margin-top: 2rem;
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 1rem;
> article {
margin-right: 1rem;
}
}
`;
export const ToolTipContainer = styled.div`
&&& {
margin-top: 2rem;
margin-bottom: 2rem;
display: flex;
align-items: center;
width: 50%;
justify-content: flex-end;
}
`;
export const ErrorText = styled(TypographyComponent)`
&&& {
color: #e89a3c;
font-style: italic;
}
`;
export const RetentionFieldLabel = styled(TypographyComponent)`
vertical-align: middle;
white-space: pre-wrap;
`;
export const RetentionFieldInputContainer = styled.div`
display: inline-flex;
`;
export const ActionItemsContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
margin-top: 10%;
`;