Changed opacity of loading components
This commit is contained in:
parent
f1e197ea97
commit
5875196594
2 changed files with 7 additions and 1 deletions
|
|
@ -26,9 +26,11 @@ import { classNames } from "../../../utils/utils";
|
||||||
export const MarketCardComponent = ({
|
export const MarketCardComponent = ({
|
||||||
data,
|
data,
|
||||||
authorized,
|
authorized,
|
||||||
|
disabled = false,
|
||||||
}: {
|
}: {
|
||||||
data: storeComponent;
|
data: storeComponent;
|
||||||
authorized: boolean;
|
authorized: boolean;
|
||||||
|
disabled?: boolean;
|
||||||
}) => {
|
}) => {
|
||||||
const { savedFlows } = useContext(StoreContext);
|
const { savedFlows } = useContext(StoreContext);
|
||||||
const [added, setAdded] = useState(savedFlows.has(data.id) ? true : false);
|
const [added, setAdded] = useState(savedFlows.has(data.id) ? true : false);
|
||||||
|
|
@ -130,7 +132,10 @@ export const MarketCardComponent = ({
|
||||||
onMouseLeave={() => {
|
onMouseLeave={() => {
|
||||||
setHovering(false);
|
setHovering(false);
|
||||||
}}
|
}}
|
||||||
className="group relative flex flex-col justify-between overflow-hidden transition-all hover:shadow-md"
|
className={classNames(
|
||||||
|
"group relative flex flex-col justify-between overflow-hidden transition-all hover:shadow-md",
|
||||||
|
disabled ? "pointer-events-none opacity-50" : ""
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<CardHeader>
|
<CardHeader>
|
||||||
|
|
|
||||||
|
|
@ -300,6 +300,7 @@ export default function StorePage(): JSX.Element {
|
||||||
key={idx}
|
key={idx}
|
||||||
data={item}
|
data={item}
|
||||||
authorized={!loadingSaved}
|
authorized={!loadingSaved}
|
||||||
|
disabled={loading}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue