Skip to content

Commit

Permalink
Merge pull request apache#501 from answerdev/feat/1.1.3/ui
Browse files Browse the repository at this point in the history
Feat/1.1.3/UI
  • Loading branch information
shuashuai committed Aug 30, 2023
2 parents 9bb1b78 + 2d72c63 commit b6484c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ui/src/pages/Admin/Seo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { getSeoSetting, putSeoSetting } from '@/services';
import { SchemaForm, JSONSchema, initFormData, UISchema } from '@/components';
import { useToast } from '@/hooks';
import { handleFormError } from '@/utils';
import { seoSettingStore } from '@/stores';

const Index: FC = () => {
const { t } = useTranslation('translation', {
Expand Down Expand Up @@ -64,6 +65,7 @@ const Index: FC = () => {
msg: t('update', { keyPrefix: 'toast' }),
variant: 'success',
});
seoSettingStore.getState().update(reqParams);
})
.catch((err) => {
if (err.isError) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SearchQuestion = ({ similarQuestions }) => {
<ListGroup.Item
action
as="a"
className="link-dark"
className="d-flex align-items-center link-dark"
key={item.id}
href={pathFactory.questionLanding(item.id, item.url_title)}
target="_blank">
Expand All @@ -38,7 +38,7 @@ const SearchQuestion = ({ similarQuestions }) => {
: null}
</span>
{item.accepted_answer ? (
<span className="ms-3 text-success">
<span className="small ms-3 text-success">
<Icon type="bi" name="check-circle-fill" />
<span className="ms-1">
{t('x_answers', {
Expand All @@ -49,7 +49,7 @@ const SearchQuestion = ({ similarQuestions }) => {
</span>
) : (
item.answer_count > 0 && (
<span className="ms-3 text-secondary">
<span className="small ms-3 text-secondary">
<Icon type="bi" name="chat-square-text-fill" />
<span className="ms-1">
{t('x_answers', {
Expand Down

0 comments on commit b6484c4

Please sign in to comment.