Skip to content

Commit

Permalink
fix(post): i18n without value
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Mar 3, 2024
1 parent dc39044 commit 12c7bb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/GZCTF/ClientApp/src/pages/posts/[postId]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,13 @@ const PostEdit: FC = () => {
onClick={() =>
modals.openConfirmModal({
title: t('post.button.delete'),
children: <Text size="sm">{t('post.content.delete')}</Text>,
children: (
<Text size="sm">
{t('post.content.delete', {
title: curPost?.title,
})}
</Text>
),
onConfirm: onDelete,
confirmProps: { color: 'red' },
})
Expand Down

0 comments on commit 12c7bb3

Please sign in to comment.