|
|
@ -1,11 +1,10 @@
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { defineMessages, useIntl } from 'react-intl';
|
|
|
|
import { FormattedMessage, defineMessages, useIntl } from 'react-intl';
|
|
|
|
|
|
|
|
|
|
|
|
import { openModal } from 'soapbox/actions/modals';
|
|
|
|
import { openModal } from 'soapbox/actions/modals';
|
|
|
|
import { cancelScheduledStatus } from 'soapbox/actions/scheduled-statuses';
|
|
|
|
import { cancelScheduledStatus } from 'soapbox/actions/scheduled-statuses';
|
|
|
|
import { getSettings } from 'soapbox/actions/settings';
|
|
|
|
import { getSettings } from 'soapbox/actions/settings';
|
|
|
|
import IconButton from 'soapbox/components/icon-button';
|
|
|
|
import { Button, HStack } from 'soapbox/components/ui';
|
|
|
|
import { HStack } from 'soapbox/components/ui';
|
|
|
|
|
|
|
|
import { useAppDispatch } from 'soapbox/hooks';
|
|
|
|
import { useAppDispatch } from 'soapbox/hooks';
|
|
|
|
|
|
|
|
|
|
|
|
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
|
|
|
import type { Status as StatusEntity } from 'soapbox/types/entities';
|
|
|
@ -46,12 +45,9 @@ const ScheduledStatusActionBar: React.FC<IScheduledStatusActionBar> = ({ status
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<HStack justifyContent='end'>
|
|
|
|
<HStack justifyContent='end'>
|
|
|
|
<IconButton
|
|
|
|
<Button theme='danger' size='sm' onClick={handleCancelClick}>
|
|
|
|
title={intl.formatMessage(messages.cancel)}
|
|
|
|
<FormattedMessage id='scheduled_status.cancel' defaultMessage='Cancel' />
|
|
|
|
text={intl.formatMessage(messages.cancel)}
|
|
|
|
</Button>
|
|
|
|
src={require('@tabler/icons/outline/x.svg')}
|
|
|
|
|
|
|
|
onClick={handleCancelClick}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</HStack>
|
|
|
|
</HStack>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
};
|
|
|
|
};
|
|
|
|