Kaynağa Gözat

hide default title

master
azri 1 hafta önce
ebeveyn
işleme
1ae548394d
2 değiştirilmiş dosya ile 6 ekleme ve 4 silme
  1. 3
    1
      src/components/SideCart/SideCart.jsx
  2. 3
    3
      src/pages/Cart.jsx

+ 3
- 1
src/components/SideCart/SideCart.jsx Dosyayı Görüntüle

@@ -117,13 +117,15 @@ const SideCart = ({ open, onClose }) => {
117 117
                         }}>
118 118
                           {product?.title}
119 119
                         </Typography>
120
+                        
121
+                        {(title != "Default Title") && 
120 122
                         <Typography variant="body2" sx={{
121 123
                           fontWeight: "100", fontSize: {
122 124
                             xs: "0.875rem",
123 125
                             sm: "0.875rem",
124 126
                             md: "1.1rem",
125 127
                           }
126
-                        }}>{`VARIANT: ${title}`}</Typography>
128
+                        }}>{`VARIANT: ${title}`}</Typography>}
127 129
 
128 130
                         <Box sx={{ display: "flex", alignItems: "center" }}>
129 131
 

+ 3
- 3
src/pages/Cart.jsx Dosyayı Görüntüle

@@ -136,14 +136,14 @@ const Cart = () => {
136 136
                     </TableCell>
137 137
 
138 138
                     <TableCell>
139
-                      <Typography variant='body2' sx={{ fontWeight: "bold", mb: 1 }}>{product.title}</Typography>
139
+                      <Typography variant='body2' sx={{ fontWeight: "bold", mb: 1 }}>{(product.title == "Default Title") ? "" : product.title} </Typography>
140 140
 
141
-                      {product?.collections?.nodes?.map(({ title }) => (<Typography variant='body2'>{title}</Typography>))}
141
+                      {product?.collections?.nodes?.map(({ title }) => (<Typography variant='body2'>{ (title == "Default Title") ? "" : title}</Typography>))}
142 142
 
143 143
                     </TableCell>
144 144
 
145 145
                     <TableCell align='center'>
146
-                      <Typography variant='body2' sx={{ fontWeight: "bold" }} >{title}</Typography>
146
+                      <Typography variant='body2' sx={{ fontWeight: "bold" }} >{ (title == "Default Title") ? "" : title}</Typography>
147 147
                     </TableCell>
148 148
 
149 149
                     <TableCell align='center'>

Loading…
İptal
Kaydet