Skip to content

Commit

Permalink
Resized app base font size, with other components in datagrid
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Aug 30, 2023
1 parent a5c7aac commit 473bc4f
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion packages/dashboard/src/components/app-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import AppBar from './appbar';
import { AlertStore } from './alert-store';

const DefaultAlertDuration = 2000;
const defaultTheme = createTheme();
const defaultTheme = createTheme({
typography: {
fontSize: 16,
},
});

/**
* Contains various components that are essential to the app and provides contexts to control them.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function BeaconDataGridTable({ beacons }: BeaconDataGridTableProps): JSX.
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.online ? 'ONLINE' : 'OFFLINE'}
Expand Down Expand Up @@ -57,7 +57,7 @@ export function BeaconDataGridTable({ beacons }: BeaconDataGridTableProps): JSX.
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.activated ? 'ON' : 'OFF'}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/lib/doors/door-table-datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function DoorDataGridTable({ doors }: DoorDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{healthStatusToOpMode(params.row.opMode)}
Expand Down Expand Up @@ -101,7 +101,7 @@ export function DoorDataGridTable({ doors }: DoorDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{params.row.doorState ? doorModeToString(params.row.doorState.current_mode.value) : -1}
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/lib/lifts/lift-table-datagrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function LiftDataGridTable({ lifts }: LiftDataGridTableProps): JSX.Elemen
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{healthStatusToOpMode(params.row.opMode)}
Expand Down Expand Up @@ -117,7 +117,7 @@ export function LiftDataGridTable({ lifts }: LiftDataGridTableProps): JSX.Elemen
sx={{
marginRight: params.row?.doorState === LiftStateModel.DOOR_OPEN ? 4 : 2,
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
display: 'inline-block',
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function RobotDataGridTable({ onRobotClick, robots }: RobotDataGridTableP
component="p"
sx={{
fontWeight: 'bold',
fontSize: 14,
fontSize: 16,
}}
>
{robotStatusToUpperCase(params.row.status)}
Expand Down

0 comments on commit 473bc4f

Please sign in to comment.