Skip to content

Commit 7c43b7f

Browse files
authored
Merge pull request #621 from framer/unsplash-spinner
cleanup: use framer-spinner class in Unsplash
2 parents 1fd9e15 + a3582f0 commit 7c43b7f

4 files changed

Lines changed: 3 additions & 104 deletions

File tree

plugins/unsplash/src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { Blurhash } from "react-blurhash"
1515
import { ErrorBoundary } from "react-error-boundary"
1616
import { getRandomPhoto, type UnsplashPhoto, useListPhotosInfinite } from "./api"
1717
import { SearchIcon } from "./icons"
18-
import { Spinner } from "./Spinner"
1918

2019
const mode = framer.mode
2120

@@ -96,7 +95,7 @@ export function App() {
9695
disabled={!isAllowedToUpsertImage}
9796
title={isAllowedToUpsertImage ? undefined : "Insufficient permissions"}
9897
>
99-
{addRandomMutation.isPending ? <Spinner size="normal" inheritColor /> : "Random Image"}
98+
{addRandomMutation.isPending ? <div className="framer-spinner" /> : "Random Image"}
10099
</button>
101100
</div>
102101
</div>
@@ -321,7 +320,7 @@ const GridItem = memo(function GridItem({
321320
loading && "bg-black-dimmed"
322321
)}
323322
>
324-
{loading && <Spinner size="medium" />}
323+
{loading && <div className="framer-spinner bg-reversed" />}
325324
</div>
326325
{!imageLoaded && photo.blur_hash && (
327326
<div className="absolute top-0 left-0">

plugins/unsplash/src/Spinner.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

plugins/unsplash/src/global.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
--color-primary: var(--framer-color-text);
1515
--color-secondary: var(--framer-color-text-secondary);
1616
--color-tertiary: var(--framer-color-text-tertiary);
17-
--color-inverted: var(--framer-color-text-inverted);
17+
--color-reversed: var(--framer-color-text-reversed);
1818

1919
--border-color-divider: var(--framer-color-divider);
2020

0 commit comments

Comments
 (0)