Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fey committed Jun 4, 2024
1 parent 4298eb4 commit a3a47ab
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion backend/src/config/mailer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class MailerConfig implements MailerOptionsFactory {
/* eslint-disable-next-line class-methods-use-this */
createMailerOptions(): MailerOptions | Promise<MailerOptions> {
const transportUrl = process.env.TRANSPORT_MAILER_URL;
const emailFrom = process.env.EMAIL_FROM ?? 'runit@localhost'
const emailFrom = process.env.EMAIL_FROM ?? 'runit@localhost';
const options: MailerOptions = {
transport: transportUrl,
defaults: {
Expand Down
4 changes: 0 additions & 4 deletions frontend/src/components/Forms/AvatarChangeForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ function AvatarChangeForm() {
const dispatch = useDispatch();
const username = useSelector((state) => state.user.userInfo.username);

const handleInDevelopment = () => {
dispatch(modalActions.openModal({ type: 'inDevelopment' }));
};

const handleEditAvatar = (type) => () => {
dispatch(modalActions.openModal(type));
};
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/Modals/ChangeAvatar.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Button, Modal, FormControl, FormLabel, Form } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';
import { useRef, useState } from 'react';
import AvatarEditor from 'react-avatar-editor';

function ChangeAvatar({ handleClose, isOpen }) {
const dispatch = useDispatch();
const { t } = useTranslation();
const [avatarState, setAvatarState] = useState({
scale: 1,
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/components/Modals/NewSnippet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ const icons = new Map()
.set('python', PythonIcon)
.set('php', PhpIcon);

const extensions = new Map()
.set('javascript', 'js')
.set('python', 'py')
.set('php', 'php')
.set('html', 'html');

const generateGuestUserData = () => {
const username = `guest_${faker.string.alphanumeric(5)}`;
const email = `${username}@hexlet.com`;
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/components/Modals/RemoveAvatar.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Button, Modal, FormGroup } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
import { useDispatch } from 'react-redux';

function RemoveAvatar({ handleClose, isOpen }) {
const dispatch = useDispatch();
const { t } = useTranslation();

return (
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/components/Navigation/UserMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ function UserMenu() {
const dispatch = useDispatch();
const username = useSelector((state) => state.user.userInfo.username);

const handleInDevelopment = () => {
dispatch(actions.openModal({ type: 'inDevelopment' }));
};
const handleNewSnippet = () => {
dispatch(actions.openModal({ type: 'newSnippet' }));
};
Expand Down

0 comments on commit a3a47ab

Please sign in to comment.