change variable names
This commit is contained in:
parent
b2c4b561df
commit
ea06cc04e6
3 changed files with 15 additions and 15 deletions
|
|
@ -188,7 +188,7 @@ export const NavBar = ({ notifications, disableNav, settings }) => {
|
||||||
<Avatar
|
<Avatar
|
||||||
onClick={() => onUserIconClick()}
|
onClick={() => onUserIconClick()}
|
||||||
>
|
>
|
||||||
{`${user?.firstName[0]}${user?.lastName[0]}`}
|
{`${user?.first_name[0]}${user?.last_name[0]}`}
|
||||||
</Avatar>
|
</Avatar>
|
||||||
</Tab>
|
</Tab>
|
||||||
<SlidingIndicator style={indicatorStyle} />
|
<SlidingIndicator style={indicatorStyle} />
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,7 @@ const settingsFields = [
|
||||||
readOnly: true
|
readOnly: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'billingAddress',
|
id: 'billing_address',
|
||||||
label: 'Billing Address',
|
label: 'Billing Address',
|
||||||
type: 'text'
|
type: 'text'
|
||||||
},
|
},
|
||||||
|
|
@ -216,7 +216,7 @@ const settingsFields = [
|
||||||
type: 'phone'
|
type: 'phone'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'displayTime',
|
id: 'display_time',
|
||||||
label: 'Display Time',
|
label: 'Display Time',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
options: [
|
options: [
|
||||||
|
|
@ -225,7 +225,7 @@ const settingsFields = [
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'startDay',
|
id: 'start_day',
|
||||||
label: 'Calendar Start Day',
|
label: 'Calendar Start Day',
|
||||||
type: 'select',
|
type: 'select',
|
||||||
options: [
|
options: [
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,18 @@ import { useLocalStore } from '@components';
|
||||||
const dept = {
|
const dept = {
|
||||||
id: 1,
|
id: 1,
|
||||||
company: 'Darien EMS - Post 53',
|
company: 'Darien EMS - Post 53',
|
||||||
Abv: 'DEMS',
|
abv: 'DEMS',
|
||||||
billingAddress: '0 Ledge Road',
|
billing_address: '0 Ledge Road',
|
||||||
town: 'Darien',
|
town: 'Darien',
|
||||||
state: 'Connecticut',
|
state: 'Connecticut',
|
||||||
postal: '06820',
|
postal: '06820',
|
||||||
country: 'United States',
|
country: 'United States',
|
||||||
phone: '',
|
phone: '',
|
||||||
displayTime: '12',
|
display_time: '12',
|
||||||
startDay: 'sunday',
|
start_day: 'sunday',
|
||||||
companyLogo: '',
|
company_logo: '',
|
||||||
employeeCount: 1,
|
employee_count: 1,
|
||||||
subscriptionExpiration: '10/01/2025',
|
subscription_expiration: '10/01/2025',
|
||||||
schedulers: [],
|
schedulers: [],
|
||||||
managers: [],
|
managers: [],
|
||||||
administrators: [1]
|
administrators: [1]
|
||||||
|
|
@ -32,19 +32,19 @@ const AppRouter = () => {
|
||||||
setDepartment(dept);
|
setDepartment(dept);
|
||||||
setUser({
|
setUser({
|
||||||
id: 1,
|
id: 1,
|
||||||
firstName: 'ShiftSync-Manager',
|
first_name: 'ShiftSync-Manager',
|
||||||
lastName: 'Test-User',
|
last_name: 'Test-User',
|
||||||
email: 'testuser@shift-sync.com',
|
email: 'testuser@shift-sync.com',
|
||||||
scheduler: dept?.schedulers?.includes(1),
|
scheduler: dept?.schedulers?.includes(1),
|
||||||
manager: dept?.managers?.includes(1),
|
manager: dept?.managers?.includes(1),
|
||||||
administrator: dept?.administrators?.includes(1),
|
administrator: dept?.administrators?.includes(1),
|
||||||
isSSAdmin: false
|
is_ss_admin: false
|
||||||
});
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!userChanged && user) {
|
if (!userChanged && user) {
|
||||||
if (user?.isSSAdmin) {
|
if (user?.is_ss_admin) {
|
||||||
setUser({
|
setUser({
|
||||||
...user,
|
...user,
|
||||||
scheduler: true,
|
scheduler: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue