styling: Enforced styling across all files (#55)

This commit is contained in:
Taso authored and GitHub committed 2021-01-12 21:31:03 -05:00
1 parent c9b3174505
commit 54daa42454
165 files changed
+1879 -1725

No files matched your search

@@ -1,21 +1,21 @@
import React, { useState } from "react";
import { makeStyles } from "@material-ui/core/styles";
import { useTranslation } from "react-i18next";
import React, { useState } from 'react';
import { makeStyles } from '@material-ui/core/styles';
import { useTranslation } from 'react-i18next';
import Nui from "../../../../os/nui-events/utils/Nui";
import { useProfile } from "../../hooks/useProfile";
import ProfileField from "./ProfileField";
import ProfileUpdateButton from "../buttons/ProfileUpdateButton";
import Nui from '../../../../os/nui-events/utils/Nui';
import { useProfile } from '../../hooks/useProfile';
import ProfileField from './ProfileField';
import ProfileUpdateButton from '../buttons/ProfileUpdateButton';
const useStyles = makeStyles((theme) => ({
root: {
position: "relative",
width: "100%",
height: "100%",
padding: "15px",
position: 'relative',
width: '100%',
height: '100%',
padding: '15px',
},
spacer: {
height: "8px",
height: '8px',
},
}));
@@ -24,20 +24,20 @@ export function ProfilePrompt() {
const { t } = useTranslation();
const { profile } = useProfile();
const [name, handleNameChange] = useState(profile.profile_name || "");
const [name, handleNameChange] = useState(profile.profile_name || '');
const handleUpdate = () => {
const data = {
...profile,
profile_name: name,
};
Nui.send("phone:updateTwitterProfile", data);
Nui.send('phone:updateTwitterProfile', data);
};
return (
<div className={classes.root}>
<ProfileField
label={t("APPS_TWITTER_EDIT_PROFILE_NAME")}
label={t('APPS_TWITTER_EDIT_PROFILE_NAME')}
value={name}
handleChange={handleNameChange}
allowChange