Skip to content

Commit

Permalink
♻️ change types and ids
Browse files Browse the repository at this point in the history
  • Loading branch information
JuampiRombola committed Sep 19, 2023
1 parent 010a52d commit e6b7013
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions components/AdvancedSwitch/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { FC } from 'react';
import { Box, Typography } from '@mui/material';
import { Box, BoxProps, Typography } from '@mui/material';
import { useCustomTheme } from 'contexts/ThemeContext';
import { useTranslation } from 'react-i18next';
import Switch from 'components/Switch';

type Props = {
sx?: React.ComponentProps<typeof Box>['sx'];
sx?: BoxProps['sx'];
fontSize?: number;
};

Expand All @@ -14,7 +14,7 @@ const AdvancedViewSwitch: FC<Props> = ({ sx, fontSize = 14 }) => {
const { view, setView } = useCustomTheme();

return (
<Box display="flex" alignItems="center" justifyContent="space-between" gap={1} sx={{ ...sx }}>
<Box display="flex" alignItems="center" justifyContent="space-between" gap={1} sx={sx}>
<Typography fontSize={fontSize}>{t('Advanced view')}</Typography>
<Switch
checked={view === 'advanced'}
Expand Down
4 changes: 2 additions & 2 deletions components/DropdownMenu/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropsWithChildren, ReactNode, useCallback, useState } from 'react';
import { Box, Button, Menu, type MenuProps, MenuItem } from '@mui/material';
import { Box, Button, Menu, type MenuProps, MenuItem, ButtonProps } from '@mui/material';
import KeyboardArrowDownRoundedIcon from '@mui/icons-material/KeyboardArrowDownRounded';

interface Props<T> extends Pick<MenuProps, 'anchorOrigin' | 'transformOrigin'> {
Expand All @@ -10,7 +10,7 @@ interface Props<T> extends Pick<MenuProps, 'anchorOrigin' | 'transformOrigin'> {
renderOption: (value: T) => ReactNode;
'data-testid'?: string;
disabled?: boolean;
buttonSx?: React.ComponentProps<typeof Button>['sx'];
buttonSx?: ButtonProps['sx'];
}

function InnerButton({ children }: PropsWithChildren) {
Expand Down
7 changes: 3 additions & 4 deletions components/Settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,23 @@ const Settings = () => {
return (
<>
<IconButton
id="view-contracts-button"
id="settings"
aria-controls={open ? 'basic-menu' : undefined}
aria-haspopup="true"
aria-expanded={open ? 'true' : undefined}
onClick={handleClick}
size="small"
sx={{ outline: '1px solid', width: '32px', height: '32px', borderRadius: '50%', p: '0px' }}
// variant="outlined"
>
<SettingsRoundedIcon sx={{ fontSize: 20 }} />
</IconButton>
<Menu
id="basic-menu"
id="settings-menu"
anchorEl={anchorEl}
open={open}
onClose={handleClose}
MenuListProps={{
'aria-labelledby': 'view-contracts-button',
'aria-labelledby': 'settings-menu',
}}
slotProps={{
paper: {
Expand Down

1 comment on commit e6b7013

@vercel
Copy link

@vercel vercel bot commented on e6b7013 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

app – ./

exactly-development.vercel.app
app.exactly.app
app.exact.ly
app-git-main.exactly.app
exactly.app

Please sign in to comment.