buttons
This commit is contained in:
@@ -3,6 +3,7 @@ import type { ReactNode } from 'react';
|
||||
import TagsPanel from '../tags/TagsPanel';
|
||||
import CorrespondentsPanel, { CorrespondentsPanelProps } from '../correspondents/CorrespondentsPanel';
|
||||
import PanelHeader from '../ui/PanelHeader';
|
||||
import { CloseIcon } from '../ui/icons';
|
||||
|
||||
const TAGS_MODAL = 'tags';
|
||||
const CORRESPONDENTS_MODAL = 'correspondents';
|
||||
@@ -106,8 +107,8 @@ export const useManagementModals = ({
|
||||
titleTag="h3"
|
||||
titleProps={{ id: 'tags-modal-title' }}
|
||||
actions={(
|
||||
<button type="button" className="secondary" onClick={closeActiveModal}>
|
||||
Close
|
||||
<button type="button" className="icon-button" onClick={closeActiveModal} aria-label="Close">
|
||||
<CloseIcon size={16} />
|
||||
</button>
|
||||
)}
|
||||
/>
|
||||
@@ -188,8 +189,8 @@ export const useManagementModals = ({
|
||||
titleTag="h3"
|
||||
titleProps={{ id: 'correspondents-modal-title' }}
|
||||
actions={(
|
||||
<button type="button" className="secondary" onClick={closeActiveModal}>
|
||||
Close
|
||||
<button type="button" className="icon-button" onClick={closeActiveModal} aria-label="Close">
|
||||
<CloseIcon size={16} />
|
||||
</button>
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -6,6 +6,7 @@ import React, {
|
||||
useState,
|
||||
} from 'react';
|
||||
import PanelHeader from '../ui/PanelHeader';
|
||||
import { CloseIcon } from '../ui/icons';
|
||||
import { DEFAULT_SETTINGS_SECTIONS } from './sections';
|
||||
|
||||
export interface SettingsSectionConfig {
|
||||
@@ -91,8 +92,8 @@ const SettingsModal: React.FC<SettingsModalProps> = ({
|
||||
titleTag="h3"
|
||||
titleProps={{ id: 'settings-modal-title' }}
|
||||
actions={(
|
||||
<button type="button" className="secondary" onClick={onClose}>
|
||||
Close
|
||||
<button type="button" className="icon-button" onClick={onClose} aria-label="Close">
|
||||
<CloseIcon size={16} />
|
||||
</button>
|
||||
)}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user