Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

spaces added between buttons #56

Merged
merged 4 commits into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions frontend/src/screens/ProductListScreen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react'
import { LinkContainer } from 'react-router-bootstrap'
import { Table, Button, Row, Col } from 'react-bootstrap'
import { Table, Button, Row, Col,ButtonGroup} from 'react-bootstrap'
import { useDispatch, useSelector } from 'react-redux'
import Message from '../components/Message'
import Loader from '../components/Loader'
Expand Down Expand Up @@ -97,18 +97,20 @@ const ProductListScreen = ({ history, match }) => {
<td>{formatter(product.price)}</td>
<td>{product.category}</td>
<td>
<ButtonGroup>
<LinkContainer to={`/admin/product/${product._id}/edit`}>
<Button variant="light" className="btn-sm">
<Button variant="light" className="btn-sm m-2 mt-0">
<i className="fas fa-edit"></i>
</Button>
</LinkContainer>
<Button
variant="danger"
className="btn-sm"
className="btn-sm m-2 mt-0"
onClick={() => deleteHandler(product._id)}
>
<i className="fas fa-trash"></i>
</Button>
</ButtonGroup>
</td>
</tr>
))}
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/screens/UsersListScreen.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react'
import { LinkContainer } from 'react-router-bootstrap'
import { Table, Button } from 'react-bootstrap'
import { Table, Button, ButtonGroup } from 'react-bootstrap'
import { useDispatch, useSelector } from 'react-redux'
import Message from '../components/Message'
import Loader from '../components/Loader'
Expand Down Expand Up @@ -66,18 +66,20 @@ const UsersListScreen = ({ history }) => {
)}
</td>
<td>
<ButtonGroup>
<LinkContainer to={`/admin/user/${user._id}/edit`}>
<Button variant="light" className="btn-sm">
<Button variant="light" className="btn-sm m-2 mt-0">
<i className="fas fa-edit"></i>
</Button>
</LinkContainer>
<Button
variant="danger"
className="btn-sm"
className="btn-sm m-2 mt-0"
onClick={() => deleteHandler(user._id)}
>
<i className="fas fa-trash"></i>
</Button>
</ButtonGroup>
</td>
</tr>
))}
Expand Down