Skip to content

Commit

Permalink
content: works vs. pieces
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrobertbrooks committed Nov 28, 2024
1 parent 1597f5d commit 674d985
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
} from 'styles';
import { styled, Paragraph } from '../shared';

const AvailableArtworkBanner = () => {
const AvailableWorksBanner = () => {
const [didDismiss, setDidDismiss] = useState<boolean>(false);

if (didDismiss) return null;

return (
<Wrapper>
<Paragraph className="fs-6 m-0">
<span>For available artwork contact:</span>{' '}
<span>For available works contact:</span>{' '}
<ExternalLink href={ExternalUrl.JKenneth}>
J. Kenneth Fine Art
</ExternalLink>
Expand Down Expand Up @@ -77,4 +77,4 @@ const Dismiss = styled.button.attrs({
}
`;

export default AvailableArtworkBanner;
export default AvailableWorksBanner;
2 changes: 1 addition & 1 deletion src/pages/Collection/FilterToggleIntroTooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const FilterToggleIntroTooltip = () => {
toggle={handleDismiss}
>
<PopoverBody>
Click here to filter pieces by title, medium, size and more.
Click here to filter works by title, medium, size and more.
</PopoverBody>
</Popover>
);
Expand Down
8 changes: 4 additions & 4 deletions src/pages/Collection/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const Modal = ({ filteredCollection, id, setId }: ModalProps) => {
setId(undefined);
addErrorNotification({
shouldAutoDismiss: true,
heading: 'Artwork Not Found',
text: 'That piece was not found.',
heading: 'Work Not Found',
text: 'That work was not found.',
});
}
}, [id, idIsValid, setId, addErrorNotification]);
Expand Down Expand Up @@ -143,7 +143,7 @@ const Modal = ({ filteredCollection, id, setId }: ModalProps) => {
<CarouselButton
ref={previousRef}
previous
aria-label="Go to previous piece"
aria-label="Go to previous work"
title="Previous"
onClick={handlePrevious}
>
Expand All @@ -152,7 +152,7 @@ const Modal = ({ filteredCollection, id, setId }: ModalProps) => {
<CarouselButton
ref={nextRef}
next
aria-label="Go to next piece"
aria-label="Go to next work"
title="Next"
onClick={handleNext}
>
Expand Down
12 changes: 6 additions & 6 deletions src/pages/Collection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { HEADING_WRAPPER_MARGIN_BOTTOM_PX } from './consts';
import Loader from './Loader';
import { SlideProvider, SlideToggle, Slide } from './slide';
import { useFilterState, Filters } from './filter';
import AvailableArtworkBanner from './AvailableArtworkBanner';
import AvailableWorksBanner from './AvailableWorksBanner';
import FilterToggleIntroTooltip from './FilterToggleIntroTooltip';
import List from './List';
import ScrollToTop from './ScrollToTop';
Expand Down Expand Up @@ -43,8 +43,8 @@ const checkIsOutsideClick = (event: any) => {
};

const getCount = (all: number, filtered: number): string => {
if (all === filtered) return `${all} pieces`;
return `${filtered} of ${all} pieces`;
if (all === filtered) return `${all} works`;
return `${filtered} of ${all} works`;
};

export const Collection = () => {
Expand Down Expand Up @@ -79,7 +79,7 @@ export const Collection = () => {
if (collectionIsLoading || !collection)
return (
<LoadingWrapper>
<AvailableArtworkBanner />
<AvailableWorksBanner />
<Heading className="mb-4">Collection</Heading>
<Loader />
</LoadingWrapper>
Expand All @@ -90,7 +90,7 @@ export const Collection = () => {
return (
<>
<SlideProvider checkIsOutsideClick={checkIsOutsideClick}>
<AvailableArtworkBanner />
<AvailableWorksBanner />
<HeadingWrapper>
<Heading className="mb-0">Collection</Heading>
<HeadingCount>{count}</HeadingCount>
Expand Down Expand Up @@ -122,7 +122,7 @@ export const Collection = () => {
noItems={
<div className="text-center">
<Paragraph color="gray" className="mt-2">
No pieces match your current filter selections.
No works match your current filter selections.
</Paragraph>
<OutlineButton onClick={resetFilters}>Reset</OutlineButton>
</div>
Expand Down

0 comments on commit 674d985

Please sign in to comment.