0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Fixed minor design issues in offers (#19363)

fixes PROD-271, PROD-273
This commit is contained in:
Sodbileg Gansukh 2023-12-13 22:26:28 +07:00 committed by GitHub
parent 58d9b8e382
commit 6462f8f2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -623,7 +623,7 @@ const AddOfferModal = () => {
updateRoute('offers'); updateRoute('offers');
}} }}
backDropClick={false} backDropClick={false}
cancelLabel='Cancel' cancelLabel='Close'
deviceSelector={false} deviceSelector={false}
dirty={saveState === 'unsaved'} dirty={saveState === 'unsaved'}
height='full' height='full'

View file

@ -254,6 +254,7 @@ const EditOfferModal: React.FC<{id: string}> = ({id}) => {
updateRoute('offers'); updateRoute('offers');
}} }}
backDropClick={false} backDropClick={false}
cancelLabel='Close'
deviceSelector={false} deviceSelector={false}
dirty={saveState === 'unsaved'} dirty={saveState === 'unsaved'}
height='full' height='full'

View file

@ -200,7 +200,7 @@ export const OffersIndexModal = () => {
const buttons: ButtonProps[] = [ const buttons: ButtonProps[] = [
{ {
key: 'cancel-modal', key: 'cancel-modal',
label: 'Cancel', label: 'Close',
onClick: () => { onClick: () => {
modal.remove(); modal.remove();
updateRoute('offers'); updateRoute('offers');
@ -245,7 +245,7 @@ export const OffersIndexModal = () => {
</div> </div>
<div className='mt-12 flex items-center justify-between border-b border-b-grey-300 pb-2.5 dark:border-b-grey-800'> <div className='mt-12 flex items-center justify-between border-b border-b-grey-300 pb-2.5 dark:border-b-grey-800'>
<h1 className='text-3xl'>{offersTabs.find(tab => tab.id === selectedTab)?.title} offers</h1> <h1 className='text-3xl'>{offersTabs.find(tab => tab.id === selectedTab)?.title} offers</h1>
<div className='-mr-3'> <div>
<SortMenu <SortMenu
direction={sortDirection as 'asc' | 'desc'} direction={sortDirection as 'asc' | 'desc'}
items={[ items={[