Skip to content

Commit

Permalink
Merge branch 'main' into phil/evolve-backfill
Browse files Browse the repository at this point in the history
  • Loading branch information
travjenkins authored Jan 19, 2024
2 parents aa0caca + 564ad52 commit 711083f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
26 changes: 9 additions & 17 deletions src/components/collection/Selector/Add/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { IconButton, Tooltip, useTheme } from '@mui/material';
import { Button, Tooltip } from '@mui/material';
import AddDialog from 'components/shared/Entity/AddDialog';
import { useEntityType } from 'context/EntityContext';
import { disabledButtonText } from 'context/Theme';
import invariableStores from 'context/Zustand/invariableStores';
import { Plus } from 'iconoir-react';
import { ReactNode, useState } from 'react';
import { useIntl } from 'react-intl';
import { FormattedMessage, useIntl } from 'react-intl';
import { useStore } from 'zustand';

interface Props {
Expand All @@ -22,7 +20,6 @@ function BindingsEditorAdd({
selectedCollections,
}: Props) {
const intl = useIntl();
const theme = useTheme();
const entityType = useEntityType();

const [open, setOpen] = useState<boolean>(false);
Expand Down Expand Up @@ -67,22 +64,17 @@ function BindingsEditorAdd({
return (
<>
<Tooltip placement="top" title={tooltip}>
<IconButton
<Button
aria-controls={open ? DIALOG_ID : undefined}
aria-expanded={open ? 'true' : undefined}
aria-haspopup="true"
disabled={disabled}
onClick={toggleDialog}
sx={{ borderRadius: 0 }}
aria-controls={open ? DIALOG_ID : undefined}
aria-haspopup="true"
aria-expanded={open ? 'true' : undefined}
variant="text"
>
<Plus
style={{
color: disabled
? disabledButtonText[theme.palette.mode]
: theme.palette.primary.main,
}}
/>
</IconButton>
<FormattedMessage id="cta.add" />
</Button>
</Tooltip>
<AddDialog
entity="collection"
Expand Down
1 change: 1 addition & 0 deletions src/lang/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ const CTAs: ResolvedIntlConfig['messages'] = {
'cta.reload': `Reload`,
'cta.evolve': `Apply`,
'cta.support': `contact support`,
'cta.add': `Add`,
};

const Data: ResolvedIntlConfig['messages'] = {
Expand Down

0 comments on commit 711083f

Please sign in to comment.