Skip to content

Commit

Permalink
fix(articles): remplace par un bouton standard
Browse files Browse the repository at this point in the history
  • Loading branch information
thom4parisot committed Dec 12, 2024
1 parent edd84de commit 45ad78c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions front/src/components/Articles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Loading,
Modal as GeistModal,
useModal,
Button as GeistButton,
} from '@geist-ui/core'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { useTranslation } from 'react-i18next'
Expand All @@ -19,6 +18,7 @@ import ArticleCreate from './ArticleCreate.jsx'

import styles from './articles.module.scss'
import Field from './Field'
import Button from './Button.jsx'
import { useActiveUserId } from '../hooks/user'
import WorkspaceLabel from './workspace/WorkspaceLabel.jsx'
import { useActiveWorkspace } from '../hooks/workspace.js'
Expand Down Expand Up @@ -254,13 +254,12 @@ export default function Articles() {

<div className={styles.articlesTableHeader}>
{!activeWorkspaceId && (
<GeistButton
type="secondary"
className={styles.button}
<Button
primary
onClick={() => setCreateArticleVisible(true)}
>
{t('article.createAction.buttonText')}
</GeistButton>
</Button>
)}
<div className={styles.articleCounter}>
{t('article.count', { count: keepArticles.length })}
Expand Down

0 comments on commit 45ad78c

Please sign in to comment.