From 644c55c22d4836b02c47ad2251e69ac9c5a601d5 Mon Sep 17 00:00:00 2001 From: Kozjar Date: Sun, 3 Dec 2023 14:32:57 +0300 Subject: [PATCH] refactor: lint --- src/components/SettingsPage/AucSettings/BidsSortSelect.tsx | 2 +- src/pages/auction/Slot/DroppableSlot.tsx | 2 +- src/reducers/Purchases/Purchases.ts | 2 +- src/reducers/Slots/Slots.ts | 2 +- src/styles/common.scss | 7 ++++--- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/SettingsPage/AucSettings/BidsSortSelect.tsx b/src/components/SettingsPage/AucSettings/BidsSortSelect.tsx index 653233d..05b4b46 100644 --- a/src/components/SettingsPage/AucSettings/BidsSortSelect.tsx +++ b/src/components/SettingsPage/AucSettings/BidsSortSelect.tsx @@ -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'; diff --git a/src/pages/auction/Slot/DroppableSlot.tsx b/src/pages/auction/Slot/DroppableSlot.tsx index 30879d9..1b3d7fd 100644 --- a/src/pages/auction/Slot/DroppableSlot.tsx +++ b/src/pages/auction/Slot/DroppableSlot.tsx @@ -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'; diff --git a/src/reducers/Purchases/Purchases.ts b/src/reducers/Purchases/Purchases.ts index 3e29033..f57d459 100644 --- a/src/reducers/Purchases/Purchases.ts +++ b/src/reducers/Purchases/Purchases.ts @@ -98,7 +98,7 @@ export const logPurchase = export const fastAddBid = (bid: Purchase, slotId: string) => - (dispatch: ThunkDispatch, getState: () => RootState): void => { + (dispatch: ThunkDispatch): void => { const showAlert = (cost: number): void => { const { username, message } = bid; const alertMessage = `${username} добавил ${cost} к "${name}" ("${message}")!`; diff --git a/src/reducers/Slots/Slots.ts b/src/reducers/Slots/Slots.ts index 2ddfe04..deda2a4 100644 --- a/src/reducers/Slots/Slots.ts +++ b/src/reducers/Slots/Slots.ts @@ -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(), diff --git a/src/styles/common.scss b/src/styles/common.scss index 01aabe0..dae5007 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -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%); } @@ -169,4 +166,8 @@ &:hover { color: currentColor; } +} + +body { + font-family: 'Helvetica Neue', Helvetica, "Roboto Light", sans-serif; } \ No newline at end of file