Skip to content

Commit

Permalink
added X as None in hair category
Browse files Browse the repository at this point in the history
  • Loading branch information
DerKatsche committed Dec 10, 2024
1 parent 8ff005c commit b3aa976
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ import { useState } from "react";
import ColorPickerButton from "~ReactComponents/GeneralComponents/ColorPicker/ColorPickerButton";
import ColorPickerModal from "~ReactComponents/GeneralComponents/ColorPicker/ColorPickerModal";

import noneIcon from "../../../../../../Assets/icons/close.svg";

const noneThumbnail = {
type: AvatarNoneModel.None,
image: require("../../../../../../Assets/avatarEditorThumbnails/hair/hairstyles/Hair_Backhead.png"),
image: noneIcon,
};

const hairThumbnails = Object.values(OAvatarHairModels).map<{
type: AvatarHairModels; // use union type with AvatarNoneModel
image: any;
image: string;
}>((type) => ({
type: type,
image: require(
Expand All @@ -31,7 +33,7 @@ hairThumbnails.unshift(noneThumbnail);

const beardThumbnails = Object.values(OAvatarBeardModels).map<{
type: AvatarBeardModels; // use union type with AvatarNoneModel
image: any;
image: string;
}>((type) => ({
type: type,
image: require(
Expand Down

0 comments on commit b3aa976

Please sign in to comment.