Skip to content

Commit

Permalink
add remove all badges button
Browse files Browse the repository at this point in the history
  • Loading branch information
totegamma committed Dec 14, 2024
1 parent 8d13769 commit 156f162
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/components/Settings/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,22 @@ export const ProfileSettings = (): JSX.Element => {
</Box>
</>
)}
{enableConcord && badges.length > 0 && (
<Button
variant="outlined"
onClick={() => {
confirm.open('バッジを全部外しますか?', () => {
client
.setProfile({
badges: []
})
.then((_) => {
load()
})
})
}}
>{`バッジを全部外す(現在${latestProfile?.badges?.length ?? 0}個)`}</Button>
)}

<Box
sx={{
Expand Down

0 comments on commit 156f162

Please sign in to comment.