Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
final-exam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
final-exam
Commits
2415f035
Commit
2415f035
authored
Oct 05, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: product display;
parent
44c36057
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
ProductCard.js
src/components/ProductCard.js
+1
-3
stock.js
src/pages/admin/stock.js
+1
-0
No files found.
src/components/ProductCard.js
View file @
2415f035
...
@@ -15,8 +15,6 @@ import { AddShoppingCart } from "@mui/icons-material";
...
@@ -15,8 +15,6 @@ import { AddShoppingCart } from "@mui/icons-material";
import
{
ShoppingCart
}
from
"@mui/icons-material"
;
import
{
ShoppingCart
}
from
"@mui/icons-material"
;
import
{
RemoveShoppingCart
}
from
"@mui/icons-material"
;
import
{
RemoveShoppingCart
}
from
"@mui/icons-material"
;
import
{
UserContext
}
from
"@/pages/_app"
;
import
{
UserContext
}
from
"@/pages/_app"
;
import
axios
from
"axios"
;
import
{
headers
}
from
"../../next.config"
;
export
default
function
ProductCard
({
export
default
function
ProductCard
({
product
,
product
,
...
@@ -35,7 +33,7 @@ export default function ProductCard({
...
@@ -35,7 +33,7 @@ export default function ProductCard({
*/
*/
return
(
return
(
<
div
<
div
className
=
"p-1 m-1 w-[300px] inline-block bg-white rounded hover:shadow duration-300"
className
=
"p-1 m-1 w-[300px]
mx-auto
inline-block bg-white rounded hover:shadow duration-300"
sx
=
{{
sx
=
{{
m
:
1
,
m
:
1
,
px
:
1
,
px
:
1
,
...
...
src/pages/admin/stock.js
View file @
2415f035
...
@@ -65,6 +65,7 @@ export default function Stock() {
...
@@ -65,6 +65,7 @@ export default function Stock() {
m
:
1
,
m
:
1
,
px
:
1
,
px
:
1
,
width
:
300
,
width
:
300
,
mx
:
"auto"
,
height
:
500
,
height
:
500
,
display
:
"inline-block"
,
display
:
"inline-block"
,
}}
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment