This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View File

@@ -0,0 +1,35 @@
import { SettingOutlined } from '@ant-design/icons';
import { Button, Tooltip } from 'antd';
import React from 'react';
import { useAppDispatch } from '../../../../hooks/useAppDispatch';
import { toggleDrawer } from './phases.slice';
import { useAppSelector } from '../../../../hooks/useAppSelector';
import { colors } from '../../../../styles/colors';
import { useTranslation } from 'react-i18next';
const ConfigPhaseButton = () => {
// get theme details from redux
const themeMode = useAppSelector(state => state.themeReducer.mode);
// localization
const { t } = useTranslation('task-list-filters');
const dispatch = useAppDispatch();
return (
<Tooltip title={t('configPhaseButtonTooltip')}>
<Button
className="borderless-icon-btn"
style={{ backgroundColor: colors.transparent, boxShadow: 'none' }}
onClick={() => dispatch(toggleDrawer())}
icon={
<SettingOutlined
style={{ color: themeMode === 'dark' ? colors.white : colors.skyBlue }}
/>
}
/>
</Tooltip>
);
};
export default ConfigPhaseButton;