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