Refactoring
This commit is contained in:
parent
806e48bd6d
commit
d864984596
@ -1,5 +1,5 @@
|
||||
import React from "react";
|
||||
import { Box, ToggleButton, toastr } from "asc-web-components";
|
||||
import { ToggleButton, toastr } from "asc-web-components";
|
||||
import styled from "styled-components";
|
||||
|
||||
const StyledToggle = styled(ToggleButton)`
|
||||
|
@ -5,12 +5,12 @@ const tablet = utils.device.tablet;
|
||||
|
||||
const ModalDialogContainer = styled.div`
|
||||
.modal-dialog-aside-footer {
|
||||
@media (max-width: 1024px) {
|
||||
@media ${tablet} {
|
||||
width: 90%;
|
||||
}
|
||||
}
|
||||
.modal-dialog-button {
|
||||
@media (max-width: 1024px) {
|
||||
@media ${tablet} {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
@ -8,26 +8,36 @@ import { withTranslation } from "react-i18next";
|
||||
import styled from "styled-components";
|
||||
|
||||
import { Box, Text, Link } from "asc-web-components";
|
||||
import { utils } from "asc-web-components";
|
||||
import ConsumerItem from "./sub-components/consumerItem";
|
||||
import ConsumerModalDialog from "./sub-components/consumerModalDialog";
|
||||
|
||||
const tablet = utils.device.tablet;
|
||||
const mobile = utils.device.mobile;
|
||||
|
||||
const RootContainer = styled(Box)`
|
||||
@media (max-width: 768px) {
|
||||
@media ${tablet} {
|
||||
margin: 0;
|
||||
|
||||
.consumers-list-container {
|
||||
margin: 32px 0 40px 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media ${tablet} {
|
||||
.consumer-item-wrapper {
|
||||
margin: 0 0 24px 0;
|
||||
}
|
||||
}
|
||||
`;
|
||||
const StyledConsumer = styled(Box)`
|
||||
width: 400px;
|
||||
|
||||
@media (max-width: 768px) {
|
||||
@media ${tablet} {
|
||||
width: 496px;
|
||||
}
|
||||
|
||||
@media (max-width: 375px) {
|
||||
@media ${mobile} {
|
||||
width: 343px;
|
||||
}
|
||||
`;
|
||||
|
Loading…
Reference in New Issue
Block a user