Skip to content

Commit 78f4978

Browse files
bexsoftBenjamin Perez
andauthored
Changed navbar & header styles (#311)
Co-authored-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 42d617c commit 78f4978

File tree

21 files changed

+1097
-1156
lines changed

21 files changed

+1097
-1156
lines changed
Lines changed: 1 addition & 1 deletion
Loading

portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx

Lines changed: 73 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ import { AppState } from "../../../../store";
3535
import { connect } from "react-redux";
3636
import { logMessageReceived, logResetMessages } from "../../Logs/actions";
3737
import { addBucketOpen, addBucketReset } from "../actions";
38+
import { containerForHeader } from "../../Common/FormComponents/common/styleLibrary";
39+
import PageHeader from "../../Common/PageHeader/PageHeader";
3840

3941
const styles = (theme: Theme) =>
4042
createStyles({
@@ -78,6 +80,7 @@ const styles = (theme: Theme) =>
7880
borderRadius: 5,
7981
boxShadow: "0px 3px 6px #00000012",
8082
},
83+
...containerForHeader(theme.spacing(4)),
8184
});
8285

8386
interface IListBucketsProps {
@@ -221,80 +224,77 @@ const ListBuckets = ({
221224
}}
222225
/>
223226
)}
227+
<PageHeader label={"Buckets"} />
224228
<Grid container>
225-
<Grid item xs={12}>
226-
<Typography variant="h6">Buckets</Typography>
227-
</Grid>
228-
<Grid item xs={12}>
229-
<br />
230-
</Grid>
231-
<Grid item xs={12} className={classes.actionsTray}>
232-
<TextField
233-
placeholder="Search Buckets"
234-
className={classes.searchField}
235-
id="search-resource"
236-
label=""
237-
onChange={(val) => {
238-
setFilterBuckets(val.target.value);
239-
}}
240-
InputProps={{
241-
disableUnderline: true,
242-
startAdornment: (
243-
<InputAdornment position="start">
244-
<SearchIcon />
245-
</InputAdornment>
246-
),
247-
}}
248-
/>
249-
<Button
250-
variant="contained"
251-
color="primary"
252-
startIcon={<CreateIcon />}
253-
onClick={() => {
254-
addBucketOpen(true);
255-
}}
256-
>
257-
Create Bucket
258-
</Button>
259-
</Grid>
260-
<Grid item xs={12}>
261-
<br />
262-
</Grid>
263-
<Grid item xs={12}>
264-
<TableWrapper
265-
itemActions={tableActions}
266-
columns={[
267-
{ label: "Name", elementKey: "name" },
268-
{
269-
label: "Creation Date",
270-
elementKey: "creation_date",
271-
renderFunction: displayParsedDate,
272-
},
273-
{
274-
label: "Size",
275-
elementKey: "size",
276-
renderFunction: niceBytes,
277-
},
278-
]}
279-
isLoading={loading}
280-
records={filteredRecords}
281-
entityName="Buckets"
282-
idField="name"
283-
paginatorConfig={{
284-
rowsPerPageOptions: [5, 10, 25],
285-
colSpan: 3,
286-
count: totalRecords,
287-
rowsPerPage: rowsPerPage,
288-
page: page,
289-
SelectProps: {
290-
inputProps: { "aria-label": "rows per page" },
291-
native: true,
292-
},
293-
onChangePage: handleChangePage,
294-
onChangeRowsPerPage: handleChangeRowsPerPage,
295-
ActionsComponent: MinTablePaginationActions,
296-
}}
297-
/>
229+
<Grid item xs={12} className={classes.container}>
230+
<Grid item xs={12} className={classes.actionsTray}>
231+
<TextField
232+
placeholder="Search Buckets"
233+
className={classes.searchField}
234+
id="search-resource"
235+
label=""
236+
onChange={(val) => {
237+
setFilterBuckets(val.target.value);
238+
}}
239+
InputProps={{
240+
disableUnderline: true,
241+
startAdornment: (
242+
<InputAdornment position="start">
243+
<SearchIcon />
244+
</InputAdornment>
245+
),
246+
}}
247+
/>
248+
<Button
249+
variant="contained"
250+
color="primary"
251+
startIcon={<CreateIcon />}
252+
onClick={() => {
253+
addBucketOpen(true);
254+
}}
255+
>
256+
Create Bucket
257+
</Button>
258+
</Grid>
259+
<Grid item xs={12}>
260+
<br />
261+
</Grid>
262+
<Grid item xs={12}>
263+
<TableWrapper
264+
itemActions={tableActions}
265+
columns={[
266+
{ label: "Name", elementKey: "name" },
267+
{
268+
label: "Creation Date",
269+
elementKey: "creation_date",
270+
renderFunction: displayParsedDate,
271+
},
272+
{
273+
label: "Size",
274+
elementKey: "size",
275+
renderFunction: niceBytes,
276+
},
277+
]}
278+
isLoading={loading}
279+
records={filteredRecords}
280+
entityName="Buckets"
281+
idField="name"
282+
paginatorConfig={{
283+
rowsPerPageOptions: [5, 10, 25],
284+
colSpan: 3,
285+
count: totalRecords,
286+
rowsPerPage: rowsPerPage,
287+
page: page,
288+
SelectProps: {
289+
inputProps: { "aria-label": "rows per page" },
290+
native: true,
291+
},
292+
onChangePage: handleChangePage,
293+
onChangeRowsPerPage: handleChangeRowsPerPage,
294+
ActionsComponent: MinTablePaginationActions,
295+
}}
296+
/>
297+
</Grid>
298298
</Grid>
299299
</Grid>
300300
</React.Fragment>

0 commit comments

Comments
 (0)