Skip to content

Commit

Permalink
chore: upgrade @taskany/bricks version
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Jul 14, 2023
1 parent 69ee5df commit 3816c7d
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 44 deletions.
43 changes: 11 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@sentry/nextjs": "7.50.0",
"@tanstack/react-query": "4.29.5",
"@tanstack/react-query-devtools": "4.29.5",
"@taskany/bricks": "1.22.0",
"@taskany/bricks": "1.23.4",
"@taskany/colors": "1.1.0",
"@tippyjs/react": "4.2.6",
"@trpc/client": "10.23.1",
Expand Down
1 change: 0 additions & 1 deletion src/components/EstimateComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ export const EstimateComboBox = React.forwardRef<HTMLDivElement, EstimateComboBo
{changed && <StyledCleanButton onClick={onCleanClick}>+</StyledCleanButton>}
<Button
disabled={props.disabled}
ref={props.ref}
text={buttonText}
iconLeft={<CalendarTickIcon noWrap size="xs" />}
onClick={props.onClick}
Expand Down
1 change: 0 additions & 1 deletion src/components/FlowComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export const FlowComboBox = React.forwardRef<HTMLDivElement, FlowComboBoxProps>(
renderTrigger={(props) => (
<Button
ghost
ref={props.ref}
text={props.text}
disabled={props.disabled}
onClick={props.onClick}
Expand Down
4 changes: 0 additions & 4 deletions src/components/GoalPage/GoalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ export const GoalPage = ({ user, ssrTime, params: { id } }: ExternalPageProps<{
onChange={onParticipantAdd}
renderTrigger={(props) => (
<StyledInlineTrigger
// FIXME: https://github.com/taskany-inc/bricks/issues/210
ref={props.ref as any as React.RefObject<HTMLDivElement>}
icon={<PlusIcon noWrap size="xs" />}
text={tr('Add participant')}
onClick={props.onClick}
Expand All @@ -424,8 +422,6 @@ export const GoalPage = ({ user, ssrTime, params: { id } }: ExternalPageProps<{
onChange={onGoalTransfer}
renderTrigger={(props) => (
<StyledInlineTrigger
// FIXME: https://github.com/taskany-inc/bricks/issues/210
ref={props.ref as any as React.RefObject<HTMLDivElement>}
icon={<ArrowRightIcon noWrap size="xs" />}
text={tr('Transfer goal')}
onClick={props.onClick}
Expand Down
2 changes: 1 addition & 1 deletion src/components/GoalParentComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const GoalParentComboBox = React.forwardRef<HTMLDivElement, GoalParentCom
renderTrigger ? (
renderTrigger(props)
) : (
<Button disabled={props.disabled} ref={props.ref} text={props.text} onClick={props.onClick} />
<Button disabled={props.disabled} text={props.text} onClick={props.onClick} />
)
}
renderInput={(props) => (
Expand Down
15 changes: 13 additions & 2 deletions src/components/PageFooter/PageFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { FC } from 'react';
import { Footer } from '@taskany/bricks';
import { Footer, Link } from '@taskany/bricks';
import { FooterItem } from '@taskany/bricks/components/Footer';
import { gray9 } from '@taskany/colors';

import { tr } from './PageFooter.i18n';

Expand All @@ -11,5 +13,14 @@ export const PageFooter: FC = () => {
{ title: tr('API'), url: '/api' },
{ title: tr('About'), url: '/about' },
];
return <Footer menuItems={menuItems} />;

return (
<Footer>
{menuItems.map(({ title, url }) => (
<Link key={url} href={url} inline>
<FooterItem color={gray9}>{title}</FooterItem>
</Link>
))}
</Footer>
);
};
1 change: 0 additions & 1 deletion src/components/TagComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export const TagComboBox = React.forwardRef<HTMLDivElement, TagComboBoxProps>(
items={items}
renderTrigger={(props) => (
<Button
ref={props.ref}
text={props.text}
disabled={props.disabled}
onClick={props.onClick}
Expand Down
1 change: 0 additions & 1 deletion src/components/UserComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export const UserComboBox = React.forwardRef<HTMLDivElement, UserComboBoxProps>(
renderTrigger(props)
) : (
<Button
ref={props.ref}
text={props.text}
disabled={props.disabled}
onClick={props.onClick}
Expand Down

0 comments on commit 3816c7d

Please sign in to comment.