Keep PinButton visible

This commit is contained in:
Adam Harvey
2021-02-01 21:52:06 -05:00
parent ab38a7ab66
commit c88aa5f04a
@@ -14,15 +14,13 @@
* limitations under the License.
*/
import { InfoCard } from '@backstage/core';
import { Grid, List, useMediaQuery, useTheme } from '@material-ui/core';
import { Grid, List } from '@material-ui/core';
import React from 'react';
import { PinButton } from './PinButton';
import { Profile } from './Profile';
import { ThemeToggle } from './ThemeToggle';
export const General = () => {
const theme = useTheme();
const fullScreen = useMediaQuery(theme.breakpoints.down('sm'));
return (
<Grid container direction="row" spacing={3}>
<Grid item sm={12} md={6}>
@@ -32,7 +30,7 @@ export const General = () => {
<InfoCard title="Appearance">
<List dense>
<ThemeToggle />
{!fullScreen && <PinButton />}
<PinButton />
</List>
</InfoCard>
</Grid>