Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
r-e-d-ant committed Jul 23, 2022
1 parent 78adb7f commit cc1d55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/CollectionsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const CollectionsPage = ({setDarkBg}) => {

// url to fetch data from
const [currentUrl, setCurrentUrl] = useState('https://api.artic.edu/api/v1/artworks?page=1&limit=50&fields=id,api_link,title,artist_title,image_id,publication_history,place_of_origin,date_display,copyright_notice,thumbnail');
const {data: arts, isPending, error} = useFetch('https://api.artic.edu/api/v1/artworks?page=1&limit=50&fields=id,api_link,title,artist_title,image_id,publication_history,place_of_origin,date_display,copyright_notice,thumbnail'); // fetching the data
const {data: arts, isPending, error} = useFetch(`${currentUrl}`); // fetching the data

const location = useLocation(); // to get current route informations

Expand Down

0 comments on commit cc1d55a

Please sign in to comment.