Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
order-management-react
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
order-management-react
Commits
82ba095c
Commit
82ba095c
authored
May 18, 2021
by
Shanelle Valencia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Match show page to order index page
parent
686bf130
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
14 deletions
+21
-14
OrderShowDetails.tsx
src/components/OrderShowDetails.tsx
+5
-5
index.css
src/index.css
+9
-5
OrderShowPage.tsx
src/pages/OrderShowPage.tsx
+7
-4
No files found.
src/components/OrderShowDetails.tsx
View file @
82ba095c
...
...
@@ -37,13 +37,13 @@ const OrderShowDetails = (props: any) => {
return
(
items
?
<
Table
variant=
"striped"
colorScheme=
"
messenger"
size=
"lg
"
>
<
Table
variant=
"striped"
colorScheme=
"
gray"
size=
"md
"
>
<
Thead
>
<
Tr
className=
"table-header"
>
<
Th
fontSize=
"
21px"
color=
"rgba(255, 166, 0, 0.897)"
>
ID
</
Th
>
<
Th
fontSize=
"
21px"
color=
"rgba(255, 166, 0, 0.897)"
>
Price
</
Th
>
<
Th
fontSize=
"
21px"
color=
"rgba(255, 166, 0, 0.897)"
>
Quantity
</
Th
>
<
Th
fontSize=
"
21px"
color=
"rgba(255, 166, 0, 0.897)"
>
SKU
</
Th
>
<
Th
fontSize=
"
16px"
>
Item
ID
</
Th
>
<
Th
fontSize=
"
16px"
>
Price
</
Th
>
<
Th
fontSize=
"
16px"
>
Quantity
</
Th
>
<
Th
fontSize=
"
16px"
>
SKU
</
Th
>
</
Tr
>
</
Thead
>
<
Tbody
>
...
...
src/index.css
View file @
82ba095c
...
...
@@ -90,27 +90,31 @@ input[type=text]:focus {
.index-table
{
border
:
1px
solid
rgb
(
110
,
106
,
106
);
padding
:
0
10px
15px
10px
;
/* padding: 0 10px 15px 10px; */
border-radius
:
2px
;
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
20px
0
rgba
(
0
,
0
,
0
,
0.19
);
padding-top
:
10px
;
}
.show-div
{
/*
.show-div {
padding: 80px 100px;
} */
.show-div-header
{
padding-top
:
20px
;
}
.show-table
{
border
:
1px
solid
rgb
(
110
,
106
,
106
);
padding
:
0
10px
15px
10px
;
/* border: 1px solid rgb(110, 106, 106); */
/* padding: 0 10px 15px 10px; */
border-radius
:
2px
;
box-shadow
:
0
4px
8px
0
rgba
(
0
,
0
,
0
,
0.2
),
0
6px
20px
0
rgba
(
0
,
0
,
0
,
0.19
);
}
.table-header
{
background-color
:
#00557d
dc
;
background-color
:
;
}
...
...
src/pages/OrderShowPage.tsx
View file @
82ba095c
...
...
@@ -6,9 +6,10 @@ import { useOrder } from 'hooks'
import
{
OrderService
}
from
'services'
import
{
Flex
,
Box
Box
,
Tag
}
from
"@chakra-ui/react"
import
{
tagColorMap
}
from
'../pages/OrdersPage/index'
const
OrderShowPage
=
(
props
:
any
)
=>
{
...
...
@@ -30,14 +31,16 @@ const OrderShowPage = (props: any) => {
if
(
!
order
)
{
return
(<></>);
}
const
statusText
=
order
.
orderStatus
return
(
<>
<
div
className=
"show-div"
>
<
Flex
justify=
"space-around"
>
<
Flex
justify=
"space-around"
className=
"show-div-header"
>
<
Box
><
strong
>
Order Date:
</
strong
>
{
new
Date
(
order
.
orderCreatedAt
).
toLocaleDateString
()
}
</
Box
>
<
Box
><
strong
>
Order Number:
</
strong
>
{
order
.
id
}
</
Box
>
<
Box
><
strong
>
Order Status:
</
strong
>
{
order
.
orderStatus
}
</
Box
>
<
Box
><
strong
>
Status:
</
strong
><
Tag
colorScheme=
{
tagColorMap
.
get
(
statusText
.
toUpperCase
())
}
>
{
statusText
}
</
Tag
></
Box
>
</
Flex
>
<
br
/>
<
div
className=
"show-table"
>
...
...
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