Skip to content

Commit

Permalink
remove placeholder range token minted nfts and shorten name in produc…
Browse files Browse the repository at this point in the history
…t images
  • Loading branch information
albertfolch-redeemeum committed Apr 30, 2024
1 parent 7b7348a commit c5dc43b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 9 additions & 1 deletion src/components/product/ProductImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ const StyledTabs = styled(Tabs)`
[data-tab-title] {
padding-right: 2rem;
font-size: 0.8063rem;
&.digital[data-active="false"] {
width: 16ch;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: content-box;
}
}
`;

Expand Down Expand Up @@ -136,7 +143,8 @@ export default function ProductImages({ onChangeOneSetOfImages }: Props) {
const name = getBundleItemName(bi);
return {
id: `${getBundleItemId(bi)}-${index}`,
title: name,
title: `Digital Item - ${name}`,
className: "digital",
content: (
<DigitalUploadImages
className="digital"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const MintedNftBundleItems: React.FC<MintedNftBundleItemsProps> = ({
style={{ minWidth: "225px", width: "auto", margin: 0 }}
>
<Input
placeholder="1"
placeholder=""
name={`${prefix}${mintedNftInfo["mintedNftTokenIdRangeMin"].key}`}
type="number"
/>
Expand All @@ -163,7 +163,7 @@ export const MintedNftBundleItems: React.FC<MintedNftBundleItemsProps> = ({
style={{ minWidth: "225px", width: "auto", margin: 0 }}
>
<Input
placeholder="999999"
placeholder=""
name={`${prefix}${mintedNftInfo["mintedNftTokenIdRangeMax"].key}`}
type="number"
/>
Expand Down
3 changes: 3 additions & 0 deletions src/components/tabs/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type TabsData = {
id: string;
title: string;
content: JSX.Element;
className?: string;
};
const tabIdentifier = "id" as const;

Expand Down Expand Up @@ -63,8 +64,10 @@ export default function Tabs({
<TabTitle
key={tab.id}
$isActive={isActive}
data-active={isActive}
data-tab-title
data-testid={`tab-${tab.title}`}
className={tab.className}
onClick={handleActive(index, tab)}
>
{tab.title}
Expand Down

0 comments on commit c5dc43b

Please sign in to comment.