Merge branch 'dev' of https://github.com/spicecat/qOverflow into dev
This commit is contained in:
commit
f46f407d6b
2 changed files with 9 additions and 9 deletions
|
|
@ -31,16 +31,16 @@ export default function Badges({ badges: { obtained, unobtained } }) {
|
|||
return (
|
||||
<>
|
||||
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
||||
<Grid item xs={4} sm={8} md={12}>
|
||||
<Typography variant='h5'>Obtained Badges</Typography>
|
||||
</Grid>
|
||||
{badgesGrid(obtained)}
|
||||
<Grid item xs={2} sm={4} md={4}>
|
||||
<Typography variant='h5'>Obtained Badges</Typography>
|
||||
</Grid>
|
||||
{badgesGrid(obtained)}
|
||||
</Grid>
|
||||
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
||||
<Grid item xs={4} sm={8} md={12}>
|
||||
<Typography variant='h5'>Unobtained Badges</Typography>
|
||||
</Grid>
|
||||
{badgesGrid(unobtained)}
|
||||
<Grid item xs={2} sm={4} md={4}>
|
||||
<Typography variant='h5'>Unobtained Badges</Typography>
|
||||
</Grid>
|
||||
{badgesGrid(unobtained)}
|
||||
</Grid>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ export default function QuestionController() {
|
|||
}
|
||||
function handleBounty(amount) {
|
||||
if (show) {
|
||||
const data = { user: userData.username, hasAcceptedAnswer: questionData.hasAcceptedAnswer, amount: amount, isOpen: (questionData.status !== 'closed'), hasBounty: questionData.hasBounty }
|
||||
const data = {amount: amount}
|
||||
addBounty(question_id, data)
|
||||
questionData.hasBounty = amount;
|
||||
userData.points -= amount;
|
||||
|
|
|
|||
Reference in a new issue