feat(#2239): add tournaments popup for facr
parent
3c3b6fe351
commit
f2c72bda7d
@ -0,0 +1,19 @@ |
||||
import { useState } from 'react' |
||||
|
||||
export const useTournamentsPopup = () => { |
||||
const [isOpen, setIsOpen] = useState(false) |
||||
|
||||
const closePopup = () => { |
||||
setIsOpen(false) |
||||
} |
||||
|
||||
const openTournamentsPopup = () => { |
||||
setIsOpen(true) |
||||
} |
||||
|
||||
return { |
||||
closePopup, |
||||
isOpen, |
||||
openTournamentsPopup, |
||||
} |
||||
} |
||||
@ -0,0 +1,43 @@ |
||||
// import { HeaderActions, CloseButton } from 'features/PopupComponents'
|
||||
// import { T9n } from 'features/T9n'
|
||||
|
||||
// import { SportsList } from './components/SportList'
|
||||
// import { TournamentsBlock } from './components/TournamentsBlock'
|
||||
import { HeaderActions, CloseButton } from 'features/PopupComponents' |
||||
import { T9n } from 'features/T9n' |
||||
|
||||
import { |
||||
Modal, |
||||
Wrapper, |
||||
Header, |
||||
HeaderTitle, |
||||
// Body,
|
||||
// Footer,
|
||||
// ApplyButton,
|
||||
} from 'features/PreferencesPopup/styled' |
||||
|
||||
import { useTournamentsPopup } from './hooks' |
||||
|
||||
export const TournamentsPopup = () => { |
||||
const { closePopup, isOpen } = useTournamentsPopup() |
||||
console.log('isOpen', isOpen) |
||||
|
||||
return ( |
||||
<Modal |
||||
isOpen={isOpen} |
||||
close={closePopup} |
||||
withCloseButton |
||||
> |
||||
<Wrapper> |
||||
<Header> |
||||
<HeaderTitle> |
||||
<T9n t='my_preferences' /> |
||||
</HeaderTitle> |
||||
<HeaderActions position='right'> |
||||
<CloseButton onClick={closePopup} /> |
||||
</HeaderActions> |
||||
</Header> |
||||
</Wrapper> |
||||
</Modal> |
||||
) |
||||
} |
||||
@ -0,0 +1,8 @@ |
||||
import styled, { css } from 'styled-components/macro' |
||||
|
||||
import { isMobileDevice } from 'config/userAgent' |
||||
|
||||
import { Modal } from 'features/PreferencesPopup/styled' |
||||
|
||||
export const ScModal = styled(Modal)` |
||||
` |
||||
Loading…
Reference in new issue