import React from "react"; import {usePaginationFragment} from "react-relay/hooks"; import {graphql} from "babel-plugin-relay/macro"; import {EntriesTableFragment$key} from "./__generated__/EntriesTableFragment.graphql"; import styles from "./EntriesTable.module.scss"; import {useNavigate} from "react-router-dom"; import {Trans} from "react-i18next"; type Props = { initialQueryRef: EntriesTableFragment$key, } const EntriesTable = ({initialQueryRef}: Props) => { const {data} = usePaginationFragment(graphql` fragment EntriesTableFragment on Query @refetchable(queryName: "EntriesTableFragment") { entries(after: $first, first: $count) @connection(key: "EntriesTableFragment_entries") { edges { node { id tags } } } } `, initialQueryRef) const navigate = useNavigate() return
{edge.node.id} |