up default tip to 10
This commit is contained in:
parent
501b7bd941
commit
bc9f602d13
|
@ -23,23 +23,26 @@ const getColor = (meSats) => {
|
||||||
return Rainbow[idx]
|
return Rainbow[idx]
|
||||||
}
|
}
|
||||||
|
|
||||||
const UpvotePopover = ({ target, show, handleClose }) => (
|
const UpvotePopover = ({ target, show, handleClose }) => {
|
||||||
<Overlay
|
const me = useMe()
|
||||||
show={show}
|
return (
|
||||||
target={target}
|
<Overlay
|
||||||
placement='right'
|
show={show}
|
||||||
>
|
target={target}
|
||||||
<Popover id='popover-basic'>
|
placement='right'
|
||||||
<Popover.Title className='d-flex justify-content-between alert-dismissible' as='h3'>Tipping
|
>
|
||||||
<button type='button' className='close' onClick={handleClose}><span aria-hidden='true'>×</span><span className='sr-only'>Close alert</span></button>
|
<Popover id='popover-basic'>
|
||||||
</Popover.Title>
|
<Popover.Title className='d-flex justify-content-between alert-dismissible' as='h3'>Tipping
|
||||||
<Popover.Content>
|
<button type='button' className='close' onClick={handleClose}><span aria-hidden='true'>×</span><span className='sr-only'>Close alert</span></button>
|
||||||
<div className='mb-2'>Press the bolt again to tip 1 more sat.</div>
|
</Popover.Title>
|
||||||
<div>Repeatedly press the bolt to tip more sats.</div>
|
<Popover.Content>
|
||||||
</Popover.Content>
|
<div className='mb-2'>Press the bolt again to tip {me?.tipDefault || 1} more sat{me?.tipDefault > 1 ? 's' : ''}.</div>
|
||||||
</Popover>
|
<div>Repeatedly press the bolt to tip more sats.</div>
|
||||||
</Overlay>
|
</Popover.Content>
|
||||||
)
|
</Popover>
|
||||||
|
</Overlay>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
const TipPopover = ({ target, show, handleClose }) => (
|
const TipPopover = ({ target, show, handleClose }) => (
|
||||||
<Overlay
|
<Overlay
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "users" ALTER COLUMN "tipDefault" SET DEFAULT 10;
|
|
@ -0,0 +1,2 @@
|
||||||
|
-- AlterIndex
|
||||||
|
ALTER INDEX "item_gist_path_index" RENAME TO "Item.path_index";
|
|
@ -34,7 +34,7 @@ model User {
|
||||||
freeComments Int @default(5)
|
freeComments Int @default(5)
|
||||||
freePosts Int @default(2)
|
freePosts Int @default(2)
|
||||||
checkedNotesAt DateTime?
|
checkedNotesAt DateTime?
|
||||||
tipDefault Int @default(1)
|
tipDefault Int @default(10)
|
||||||
pubkey String? @unique
|
pubkey String? @unique
|
||||||
trust Float @default(0)
|
trust Float @default(0)
|
||||||
lastSeenAt DateTime?
|
lastSeenAt DateTime?
|
||||||
|
@ -150,6 +150,7 @@ model Item {
|
||||||
@@index([statusUpdatedAt])
|
@@index([statusUpdatedAt])
|
||||||
@@index([subName])
|
@@index([subName])
|
||||||
@@index([pinId])
|
@@index([pinId])
|
||||||
|
@@index([path])
|
||||||
}
|
}
|
||||||
|
|
||||||
enum PostType {
|
enum PostType {
|
||||||
|
|
Loading…
Reference in New Issue