Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozjar committed Dec 3, 2023
1 parent eb6c08c commit 644c55c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/SettingsPage/AucSettings/BidsSortSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC } from 'react';
import { FormControl, Grid, MenuItem, Select, SelectProps, Typography } from '@mui/material';
import { FormControl, Grid, MenuItem, Select, Typography } from '@mui/material';
import { Control, Controller } from 'react-hook-form';
import ArrowUpwardOutlinedIcon from '@mui/icons-material/ArrowUpwardOutlined';
import ArrowDownwardOutlinedIcon from '@mui/icons-material/ArrowDownwardOutlined';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/auction/Slot/DroppableSlot.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { DragEvent, memo, useCallback, useRef, useState } from 'react';
import './Slot.scss';
import { IconButton, Menu, MenuItem, Typography } from '@mui/material';
import { Menu, MenuItem } from '@mui/material';
import DeleteIcon from '@mui/icons-material/Delete';
import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
import { useDispatch, useSelector } from 'react-redux';
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/Purchases/Purchases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const logPurchase =

export const fastAddBid =
(bid: Purchase, slotId: string) =>
(dispatch: ThunkDispatch<RootState, {}, Action>, getState: () => RootState): void => {
(dispatch: ThunkDispatch<RootState, {}, Action>): void => {
const showAlert = (cost: number): void => {
const { username, message } = bid;
const alertMessage = `${username} добавил ${cost} к "${name}" ("${message}")!`;
Expand Down
2 changes: 1 addition & 1 deletion src/reducers/Slots/Slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const createSlotFromPurchase =
aucSettings: { settings },
slots: { slots },
} = getState();
const { message: name, cost, isDonation } = bid;
const { message: name, cost } = bid;
// eslint-disable-next-line no-plusplus
const newSlot: Slot = {
id: Math.random().toString(),
Expand Down
7 changes: 4 additions & 3 deletions src/styles/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,9 @@
//background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(0,0,0,1) 50%, rgba(255,255,255,0) 100%);
//background-color: rgba(#000, 0.6);

display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 40px;
font-family: Arial;
background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0.65) 40%, rgba(0,0,0,0.3) 68%, rgba(0,0,0,0) 72%);
}

Expand Down Expand Up @@ -169,4 +166,8 @@
&:hover {
color: currentColor;
}
}

body {
font-family: 'Helvetica Neue', Helvetica, "Roboto Light", sans-serif;
}

0 comments on commit 644c55c

Please sign in to comment.