Skip to content

Commit 7eb39b3

Browse files
committed
Fix profile/dashboard errors
1 parent 01cc414 commit 7eb39b3

File tree

8 files changed

+194
-172
lines changed

8 files changed

+194
-172
lines changed

src/components/BreadCrumbs/index.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,19 @@ const BreadCrumbs = () => {
8181
setValue(newValue);
8282
};
8383

84+
const date = () => {
85+
let dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
86+
const monthNames = ["January", "February", "March", "April", "May", "June",
87+
"July", "August", "September", "October", "November", "December"
88+
];
89+
let d = new Date()
90+
let year = d.getFullYear()
91+
let month = d.getMonth()
92+
let date = d.getDate()
93+
let day = d.getDay() + 1
94+
return `${date} ${monthNames[month]} ${year}, ${dayNames[day - 1]}`
95+
}
96+
8497
function a11yProps(index) {
8598
return {
8699
id: `simple-tab-${index}`,
@@ -97,7 +110,7 @@ const BreadCrumbs = () => {
97110
<Grid
98111
container
99112
direction='row'
100-
justify='space-between'
113+
justifyContent='space-between'
101114
alignItems='center'
102115
wrap={'nowrap'}
103116
style={{ overflowX: 'auto' }}
@@ -139,7 +152,8 @@ const BreadCrumbs = () => {
139152
<Box display='flex' alignItems='center'>
140153
<CalendarIcon className={classes.calendarIcon} />
141154
<Typography className={classes.date} style={{ marginRight: 38 }}>
142-
29 Oct 2019, Tuesday
155+
{/*29 Oct 2019, Tuesday*/}
156+
{date()}
143157
</Typography>
144158
<Button
145159
variant='contained'

src/components/Documentation/Documentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Documentation = (props) => {
5151
<Grid
5252
container
5353
direction='row'
54-
justify='space-between'
54+
justifyContent='space-between'
5555
alignItems='center'
5656
>
5757
{structure.map((c) => {

src/pages/CRUD/Users/table/UsersTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const UsersTable = () => {
257257

258258
return (
259259
<div>
260-
<Widget title={<h4>Users</h4>} disableWidgetMenu>
260+
<Widget title='Users' disableWidgetMenu>
261261
<Box className={classes.actions}>
262262
<Link to='/admin/users/new'>
263263
<Button variant='contained'>New</Button>

0 commit comments

Comments
 (0)