Feature/tinder (#179)

* basic framework for match/tinder

* working version of swiping

* working version of profile editing

* introducing backend

* working matching system

* working profile updating

* fix all linting issues

* updated events to Enum

* working profile generation

* documentation updates

* general PR feedback

* working profile loading, matches show matchedAt

* slight modification to event strings

* added sql imports
This commit is contained in:
Erik authored and GitHub committed 2021-03-26 13:29:51 -04:00
1 parent b02b19be5f
commit 6b865f2e73
46 files changed
+1932 -49

No files matched your search

@@ -5,10 +5,10 @@ import { useTranslation } from 'react-i18next';
import Nui from '../../../../os/nui-events/utils/Nui';
import { useProfile } from '../../hooks/useProfile';
import Avatar from '../Avatar';
import ProfileField from './ProfileField';
import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
import { usePhone } from '../../../../os/phone/hooks/usePhone';
import { TwitterEvents } from '../../../../../../typings/twitter';
import ProfileField from '../../../../ui/components/ProfileField';
const useStyles = makeStyles((theme) => ({
root: {
@@ -1,40 +0,0 @@
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { TextField } from '@material-ui/core';
const useStyles = makeStyles({
formContainer: {
width: '100%',
marginTop: '8px',
},
textField: {
width: '100%',
},
});
function ProfileField({ label, value, handleChange, allowChange, multiline, inputRef }) {
const classes = useStyles();
const _handleChange = (e) => handleChange(e.target.value);
return (
<div className={classes.formContainer}>
<TextField
className={classes.textField}
label={label}
value={value}
onChange={_handleChange}
disabled={!allowChange}
multiline={multiline}
inputRef={inputRef}
/>
</div>
);
}
ProfileField.defaultProps = {
allowChange: true,
multiline: false,
inputRef: null,
};
export default ProfileField;
@@ -3,14 +3,14 @@ import { makeStyles } from '@material-ui/core/styles';
import { useTranslation } from 'react-i18next';
import Nui from '../../../../os/nui-events/utils/Nui';
import ProfileField from '../../../../ui/components/ProfileField';
import { useProfile } from '../../hooks/useProfile';
import ProfileField from './ProfileField';
import DefaultProfilePrompt from './DefaultProfilePrompt';
import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
import { useRecoilValue } from 'recoil';
import { twitterState } from '../../hooks/state';
import { usePhone } from '../../../../os/phone/hooks/usePhone';
import { TwitterEvents } from '../../../../../../typings/twitter';
import DefaultProfilePrompt from './DefaultProfilePrompt';
const useStyles = makeStyles((theme) => ({
root: {