This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
android { | |
... | |
buildTypes { | |
release { | |
shrinkResources true | |
minifyEnabled true | |
proguardFiles | |
getDefaultProguardFile('proguard-android.txt'), | |
'proguard-rules.pro' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
project: { | |
ios: {}, | |
android: {}, | |
}, | |
assets: ['./src/assets/fonts/'], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Popup = () => { | |
... | |
const handleClose = () => { | |
props.closePopup(); | |
} | |
return ( | |
<ClickAwayListener onClickAway={handleClose}> | |
{renderPopupContent()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
type Props = { | |
const isPopupOpen: boolean; | |
const closePopup: () => void; | |
} | |
const Popup = (props: Props) => { | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
const INFINITE_SCROLL_ID = "infiniteScrollId"; | |
const Root = () => { | |
return <Grid | |
container | |
direction="column" | |
id={INFINITE_SCROLL_ID} | |
onScroll={onScroll} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useEffect } from 'react'; | |
export const useOnScrollEffect = ( | |
fun: React.EffectCallback, | |
elementId: string | |
) => | |
useEffect(() => { | |
document.getElementById(elementId)?.addEventListener('scroll', fun); | |
return () => window.removeEventListener('scroll', fun); | |
}, [fun]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const home = '/home'; | |
export const spaceships = '/spaceships'; | |
// ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppBar, Grid, Hidden, Toolbar } from '@material-ui/core'; | |
// ... | |
const Header = () => { | |
// ... | |
return ( | |
<AppBar position="static"> | |
<Toolbar disableGutters> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { makeStyles } from '@material-ui/core'; | |
export const useStyles = makeStyles((theme) => ({ | |
bottomNavigation: { | |
position: 'sticky', | |
paddingLeft: 16, | |
paddingRight: 16, | |
bottom: 0, | |
// ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
BottomNavigation, | |
BottomNavigationAction, | |
Hidden, | |
} from '@material-ui/core'; | |
import Drawer from '../../../../src/app/Drawer'; | |
import * as routes from '../../../app/routes'; | |
import { useTranslation } from 'react-i18next'; | |
import { useStyles } from './styles'; | |
import { useHistory } from 'react-router-dom'; |
NewerOlder