Skip to content

Commit

Permalink
refactor: remove three dots from a card in a submitted board
Browse files Browse the repository at this point in the history
  • Loading branch information
nunocaseiro committed Feb 8, 2023
1 parent e544d41 commit e7df353
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ export class SlackMergeBoardApplication implements MergeBoardApplicationInterfac
const message = `<!here>, The board of team ${teamNumber} is ready`;
this.chatHandler.postMessage(responsiblesChannelId, message);

await new Promise((r) => setTimeout(r, 1000));

if (isLastSubBoard) {
const responsiblesMessage = `All sub-boards merged! Here's the complete board: ${this.frontendUrl}/boards/${data.mainBoardId}`;
this.chatHandler.postMessage(responsiblesChannelId, responsiblesMessage);
Expand Down
17 changes: 0 additions & 17 deletions frontend/src/components/Board/Card/CardItem/CardItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React, { useState } from 'react';
import { styled } from '@/styles/stitches/stitches.config';

import AddCardOrComment from '@/components/Board/AddCardOrComment';
import Icon from '@/components/icons/Icon';
import Flex from '@/components/Primitives/Flex';
import Text from '@/components/Primitives/Text';
import { CardItemType } from '@/types/card/cardItem';
Expand Down Expand Up @@ -81,22 +80,6 @@ const CardItem: React.FC<CardItemProps> = React.memo(
>
{item.text}
</Text>
{isSubmited && (
<Flex
css={{
position: 'relative',
top: firstOne ? '-35px' : 0,
}}
>
<Icon
name="menu-dots"
css={{
width: '$20',
height: '$20',
}}
/>
</Flex>
)}
{!isSubmited &&
((userId === item?.createdBy?._id && !isMainboard) || hasAdminRole) && (
<PopoverCardSettings
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/components/Board/Comment/Comment.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react';

import Icon from '@/components/icons/Icon';
import Flex from '@/components/Primitives/Flex';
import Text from '@/components/Primitives/Text';
import useComments from '@/hooks/useComments';
Expand Down Expand Up @@ -82,15 +81,6 @@ const Comment: React.FC<CommentProps> = React.memo(
>
{comment.text}
</Text>
{isSubmited && userId === comment.createdBy._id && (
<Icon
name="menu-dots"
css={{
width: '$20',
height: '$20',
}}
/>
)}
{!isSubmited &&
((userId === comment.createdBy._id && !isMainboard) || hasAdminRole) && (
<PopoverCommentSettings
Expand Down

0 comments on commit e7df353

Please sign in to comment.