Skip to content

Commit

Permalink
reverseevents order
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso-santos committed Oct 16, 2023
1 parent 6dae3cb commit 6fb3de5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/app/pages/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ const { Title } = Typography;
function Events() {
const { data: events, isLoading } = useEvents();

let reversedEvents = events ? events.slice().reverse() : [];

return (
<AppLayout>
<Title level={2}>Eventos</Title>
<Row className={styles.row} align="top" justify="start" gutter={[16, 16]}>
{events?.map((info) => (
{reversedEvents?.map((info) => (
<Col key={info.id}>
<Event event={info} loading={isLoading} />
</Col>
Expand Down

0 comments on commit 6fb3de5

Please sign in to comment.