-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(marketplace): Show materials details the same way on auction as i… (
#1105) * fix(marketplace): Show materials details the same way on auction as in auction list * fix(marketplace): Mute console errors part 1 * fix(marketplace): Remove commented code
- Loading branch information
Showing
8 changed files
with
101 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
frontend/marketplace/src/components/ProjectDetailMaterial.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<script setup lang="ts"> | ||
import type { MaterialProperty } from "@/types/GraphqlSchema"; | ||
import { | ||
findPlasticTypeInMaterial, | ||
stripPlasticTypeFromMaterial, | ||
prettifyCardProperty, | ||
} from "@/utils/utils"; | ||
interface Props { | ||
materials: MaterialProperty[][]; | ||
label: string; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
<template> | ||
<div> | ||
<h2 class="details-label">{{ label }}</h2> | ||
<div v-for="(material, index) in materials" :key="`material-${index}`"> | ||
<h3>{{ findPlasticTypeInMaterial(material)?.value }}</h3> | ||
<ul class="list-disc ml-6"> | ||
<li | ||
v-for="property in stripPlasticTypeFromMaterial(material)" | ||
:key="property.key" | ||
class="text-title14" | ||
> | ||
{{ prettifyCardProperty(property) }} | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters