feat(#2248): add popup for confirm cookies
parent
d4e0149d63
commit
0f1ba52bbe
@ -0,0 +1,49 @@ |
||||
import { T9n } from 'features/T9n' |
||||
|
||||
import { |
||||
ScBody, |
||||
Modal, |
||||
ScApplyButton, |
||||
ScHeaderTitle, |
||||
ScText, |
||||
} from './styled' |
||||
|
||||
import { |
||||
Header, |
||||
Wrapper, |
||||
Footer, |
||||
} from '../RegisterPopup/styled' |
||||
|
||||
type Props = { |
||||
handleModalClose: () => void, |
||||
isModalOpen: boolean, |
||||
} |
||||
|
||||
export const ConfirmPopup = (props: Props) => { |
||||
const { |
||||
handleModalClose, |
||||
isModalOpen, |
||||
} = props |
||||
|
||||
return ( |
||||
<Modal isOpen={isModalOpen} withCloseButton={false}> |
||||
<Wrapper> |
||||
<Header> |
||||
<ScHeaderTitle> |
||||
<T9n t='consent' /> |
||||
</ScHeaderTitle> |
||||
</Header> |
||||
<ScBody> |
||||
<ScText> |
||||
<T9n t='updated_terms' /> |
||||
</ScText> |
||||
</ScBody> |
||||
<Footer> |
||||
<ScApplyButton onClick={() => handleModalClose()}> |
||||
<T9n t='i_agree' /> |
||||
</ScApplyButton> |
||||
</Footer> |
||||
</Wrapper> |
||||
</Modal> |
||||
) |
||||
} |
||||
@ -0,0 +1,30 @@ |
||||
import styled from 'styled-components/macro' |
||||
import { ModalWindow } from 'features/Modal/styled' |
||||
import { |
||||
ApplyButton, |
||||
Body, |
||||
Modal as BaseModal, |
||||
HeaderTitle, |
||||
} from 'features/AuthServiceApp/components/RegisterPopup/styled' |
||||
|
||||
export const Modal = styled(BaseModal)` |
||||
${ModalWindow} { |
||||
min-height: 220px; |
||||
} |
||||
` |
||||
|
||||
export const ScHeaderTitle = styled(HeaderTitle)` |
||||
text-align: center; |
||||
` |
||||
|
||||
export const ScBody = styled(Body)` |
||||
padding: 25px 16px 0 16px; |
||||
` |
||||
|
||||
export const ScText = styled.span` |
||||
text-align: center; |
||||
` |
||||
|
||||
export const ScApplyButton = styled(ApplyButton)` |
||||
margin: 0; |
||||
` |
||||
Loading…
Reference in new issue