Skip to content
Snippets Groups Projects
Commit cd3b6e6d authored by bruno's avatar bruno
Browse files

add reports page

parent 04812d36
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import { Home } from './pages/home'
import { Implementations } from './pages/implementations'
import { NotFound } from './pages/not-found'
import { Patterns } from './pages/patterns'
import { Reports } from './pages/reports'
const Routes = () => {
return (
......@@ -21,6 +22,7 @@ const Routes = () => {
<Route path="/" page={Home} name="home" />
<Route path="/patterns" page={Patterns} name="patterns" />
<Route path="/implementations" page={Implementations} name="implementations" />
<Route path="/reports" page={Reports} name="reports" />
</Router>
)
}
......
......@@ -7,6 +7,6 @@ describe('Implementations page', () => {
RTL.render(<Implementations />)
RTL.screen.getByText('Implementaciones')
RTL.screen.getByText(/contenido de implementaciones 2/i)
RTL.screen.getByText(/contenido de implementaciones/i)
})
})
......@@ -9,7 +9,7 @@ export const Implementations = () => {
Implementaciones
</Heading>
<Text fontSize="lg" mb="4">
Contenido de implementaciones 2
Contenido de implementaciones
</Text>
</Box>
)
......
export * from './reports'
import * as RTL from '@redwoodjs/testing/web'
import { Reports } from '.'
describe('Reports page', () => {
it('renders successfully', () => {
RTL.render(<Reports />)
RTL.screen.getByText('Reportes')
RTL.screen.getByText(/contenido de reportes/i)
})
})
import type { StoryObj } from '@storybook/react'
import { Reports } from '.'
export default {
component: Reports,
title: 'Reports page',
}
export const Default: StoryObj<typeof Reports> = {
render: () => <Reports />,
}
import React from 'react'
import { Text, Heading, Box } from '@chakra-ui/react'
export const Reports = () => {
return (
<Box>
<Heading as="h1" size="xl" mb="6">
Reportes
</Heading>
<Text fontSize="lg" mb="4">
Contenido de reportes
</Text>
</Box>
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment