Skip to content

Commit

Permalink
fix: fix mobile platform switch colors (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Mar 6, 2024
1 parent 9c446f3 commit ad9e141
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/main/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Link, useParams } from 'react-router-dom';

import { Stack, styled } from '@mui/material';
import { Stack, styled, useTheme } from '@mui/material';

import { Context } from '@graasp/sdk';
import {
Expand Down Expand Up @@ -47,6 +47,7 @@ type Props = { children: JSX.Element | (JSX.Element & string) };

const Main = ({ children }: Props): JSX.Element => {
const { t } = useBuilderTranslation();
const theme = useTheme();

const itemId = useParams()[ITEM_ID_PARAMS];

Expand Down Expand Up @@ -89,6 +90,8 @@ const Main = ({ children }: Props): JSX.Element => {
id={APP_NAVIGATION_PLATFORM_SWITCH_ID}
selected={Platform.Builder}
platformsProps={platformProps}
color={theme.palette.primary.main}
accentColor={theme.palette.secondary.main}
/>
}
>
Expand Down

0 comments on commit ad9e141

Please sign in to comment.