mirror of
https://github.com/pds-nest/nest.git
synced 2024-11-22 04:54:18 +00:00
🚧 Partially fix a bug
This commit is contained in:
parent
31b97ae6b9
commit
9c96e20d4a
3 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ export default function BoxRepositoriesActive({ ...props }) {
|
|||
if(repositories.length > 0) {
|
||||
contents = repositories.map(repo => (
|
||||
<RepositorySummaryBase
|
||||
key={repo["id"]}
|
||||
{...repo}
|
||||
icon={faSearch}
|
||||
canArchive={true}
|
||||
|
|
|
@ -30,6 +30,7 @@ export default function BoxRepositoriesArchived({ ...props }) {
|
|||
if(repositories.length > 0) {
|
||||
contents = repositories.map(repo => (
|
||||
<RepositorySummaryBase
|
||||
key={repo["id"]}
|
||||
{...repo}
|
||||
icon={faSearch}
|
||||
canArchive={true}
|
||||
|
|
|
@ -31,7 +31,7 @@ export default function RepositorySummaryBase(
|
|||
{ id, owner, icon, name, start, end, isActive, canDelete, canEdit, canArchive, className, ...props }
|
||||
) {
|
||||
const {fetchDataAuth} = useContext(ContextUser)
|
||||
const {history} = useHistory()
|
||||
const history = useHistory()
|
||||
const {fetchNow: archiveThis} = useData(fetchDataAuth, "PATCH", `/api/v1/repositories/${id}`, {"close": true})
|
||||
const {fetchNow: unarchiveThis} = useData(fetchDataAuth, "PATCH", `/api/v1/repositories/${id}`, {"open": true})
|
||||
const {fetchNow: deletThis} = useData(fetchDataAuth, "DELETE", `/api/v1/repositories/${id}`)
|
||||
|
|
Loading…
Reference in a new issue