Loading frontend/src/components/CategoryView/CategoryView.tsx +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import { LinkButton } from '../LinkButton.tsx'; import { useConfiguration } from '../../hooks/configurationHook'; export type CategoryInputType = Category & { view: 'view' | 'add' }; // view true for viewing false fro editing // view true for viewing false for editing export function CategoryView({ id, name, view }: CategoryInputType) { const { addCategory, configuration } = useConfiguration(); return ( Loading frontend/src/components/Filters/MemoryFilters.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -46,8 +46,8 @@ export function MemoryFilters() { const memories = useRecoilValue(memoriesAtom); const [minPrice, maxPrice] = memories.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading frontend/src/components/Filters/MotherboardFilters.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ export function MotherboardFilters() { const motherboards = useRecoilValue(motherboardsAtom); const [minPrice, maxPrice] = motherboards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading Loading @@ -108,8 +108,8 @@ export function MotherboardFilters() { const [minSlots, maxSlots] = motherboards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.memorySlotCount), Math.max(max, curr.memorySlotCount), Math.floor(Math.min(min, curr.memorySlotCount)), Math.round(Math.max(max, curr.memorySlotCount)), ], [Infinity, 0] ); Loading frontend/src/components/Filters/ProcessorFilters.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,8 @@ export function ProcessorFilters() { const processors = useRecoilValue(processorsAtom); const [minPrice, maxPrice] = processors.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading frontend/src/components/Filters/VideoCardFilters.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -53,8 +53,8 @@ export function VideoCardFilters() { const videoCards = useRecoilValue(videoCardsAtom); const [minPrice, maxPrice] = videoCards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading Loading @@ -94,8 +94,8 @@ export function VideoCardFilters() { const [minSlots, maxSlots] = videoCards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.slotSize), Math.max(max, curr.slotSize), Math.floor(Math.min(min, curr.slotSize)), Math.round(Math.max(max, curr.slotSize)), ], [Infinity, 0] ); Loading Loading
frontend/src/components/CategoryView/CategoryView.tsx +1 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ import { LinkButton } from '../LinkButton.tsx'; import { useConfiguration } from '../../hooks/configurationHook'; export type CategoryInputType = Category & { view: 'view' | 'add' }; // view true for viewing false fro editing // view true for viewing false for editing export function CategoryView({ id, name, view }: CategoryInputType) { const { addCategory, configuration } = useConfiguration(); return ( Loading
frontend/src/components/Filters/MemoryFilters.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -46,8 +46,8 @@ export function MemoryFilters() { const memories = useRecoilValue(memoriesAtom); const [minPrice, maxPrice] = memories.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading
frontend/src/components/Filters/MotherboardFilters.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -56,8 +56,8 @@ export function MotherboardFilters() { const motherboards = useRecoilValue(motherboardsAtom); const [minPrice, maxPrice] = motherboards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading Loading @@ -108,8 +108,8 @@ export function MotherboardFilters() { const [minSlots, maxSlots] = motherboards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.memorySlotCount), Math.max(max, curr.memorySlotCount), Math.floor(Math.min(min, curr.memorySlotCount)), Math.round(Math.max(max, curr.memorySlotCount)), ], [Infinity, 0] ); Loading
frontend/src/components/Filters/ProcessorFilters.tsx +2 −2 Original line number Diff line number Diff line Loading @@ -52,8 +52,8 @@ export function ProcessorFilters() { const processors = useRecoilValue(processorsAtom); const [minPrice, maxPrice] = processors.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading
frontend/src/components/Filters/VideoCardFilters.tsx +4 −4 Original line number Diff line number Diff line Loading @@ -53,8 +53,8 @@ export function VideoCardFilters() { const videoCards = useRecoilValue(videoCardsAtom); const [minPrice, maxPrice] = videoCards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.price), Math.max(max, curr.price), Math.floor(Math.min(min, curr.price)), Math.round(Math.max(max, curr.price)), ], [Infinity, 0] ); Loading Loading @@ -94,8 +94,8 @@ export function VideoCardFilters() { const [minSlots, maxSlots] = videoCards.reduce<[number, number]>( ([min, max], curr) => [ Math.min(min, curr.slotSize), Math.max(max, curr.slotSize), Math.floor(Math.min(min, curr.slotSize)), Math.round(Math.max(max, curr.slotSize)), ], [Infinity, 0] ); Loading