Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajat-Dabade committed Aug 20, 2024
1 parent 4b18598 commit 9b6b89e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"[typescriptreact]": {
"editor.codeActionsOnSave": {
// "source.organizeImports": true,
"source.organizeImports": true,
},
},
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces": false,
Expand Down
22 changes: 8 additions & 14 deletions webapp/src/components/cardDialog.tsx
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React, {useState, useCallback} from 'react'
import React, {useCallback, useState} from 'react'
import {FormattedMessage, useIntl} from 'react-intl'

import {Board} from '../blocks/board'
import {BoardView} from '../blocks/boardView'
import {Card} from '../blocks/card'
import octoClient from '../octoClient'
import {sendFlashMessage} from '../components/flashMessages'
import mutator from '../mutator'
import octoClient from '../octoClient'
import {getCardAttachments, updateAttachments, updateUploadPrecent} from '../store/attachments'
import {getCard} from '../store/cards'
import {getCardComments} from '../store/comments'
import {getCardContents} from '../store/contents'
import {useAppDispatch, useAppSelector} from '../store/hooks'
import {getCardAttachments, updateAttachments, updateUploadPrecent} from '../store/attachments'
import TelemetryClient, {TelemetryActions, TelemetryCategory} from '../telemetry/telemetryClient'
import {Utils} from '../utils'
import CompassIcon from '../widgets/icons/compassIcon'
import Menu from '../widgets/menu'
import {sendFlashMessage} from '../components/flashMessages'

import ConfirmationDialogBox, {ConfirmationDialogBoxProps} from '../components/confirmationDialogBox'

import Button from '../widgets/buttons/button'

import {Permission} from '../constants'
import {Block, createBlock} from '../blocks/block'
import {AttachmentBlock, createAttachmentBlock} from '../blocks/attachmentBlock'
import {Block, createBlock} from '../blocks/block'
import {Permission} from '../constants'

import BoardPermissionGate from './permissions/boardPermissionGate'

import CardDetail from './cardDetail/cardDetail'
import Dialog from './dialog'

import './cardDialog.scss'
import CardActionsMenu from './cardActionsMenu/cardActionsMenu'
import './cardDialog.scss'

type Props = {
board: Board
Expand Down Expand Up @@ -224,20 +224,14 @@ const CardDialog = (props: Props): JSX.Element => {
)
}

const followActionButton = (): React.ReactNode => {
return (<>{attachBtn()}</>)
}

const toolbar = followActionButton()

return (
<>
<Dialog
title={<div/>}
className='cardDialog'
onClose={props.onClose}
toolsMenu={!props.readonly && !card?.limited && menu}
toolbar={toolbar}
toolbar={attachBtn()}
>
{isTemplate &&
<div className='banner'>
Expand Down

0 comments on commit 9b6b89e

Please sign in to comment.