moved all of the libracart suff from the old frontend into the new new, also added libracart as an option alongside jd and cnh to skip the auth0 callback when redirected back to us from there
This commit is contained in:
parent
67cafbe2ed
commit
a0a54bee2a
14 changed files with 528 additions and 12 deletions
24
src/products/CommonIcons/libracartIcon.tsx
Normal file
24
src/products/CommonIcons/libracartIcon.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
// update logo images when they share official black and white
|
||||
import LibraCartLogoWhite from "assets/marketplaceImages/LibraCartGrey.png";
|
||||
import LibraCartLogoBlack from "assets/marketplaceImages/LibraCartGrey.png";
|
||||
import { ImgIcon } from "common/ImgIcon";
|
||||
import { useThemeType } from "hooks";
|
||||
|
||||
interface Props {
|
||||
type?: "light" | "dark";
|
||||
}
|
||||
|
||||
export default function LibraCartIcon(props: Props) {
|
||||
const themeType = useThemeType();
|
||||
const { type } = props;
|
||||
|
||||
const src = () => {
|
||||
if (type) {
|
||||
return type === "light" ? LibraCartLogoWhite : LibraCartLogoBlack;
|
||||
}
|
||||
|
||||
return themeType === "light" ? LibraCartLogoBlack : LibraCartLogoWhite;
|
||||
};
|
||||
|
||||
return <ImgIcon alt="libra-cart" src={src()} />;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue