feat: interact with user settings/profile (#9)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import { Meta, Story } from '@storybook/react'
|
||||
|
||||
import { Footer as Component, FooterProps } from './'
|
||||
import { Footer as Component, FooterProps } from '.'
|
||||
|
||||
const Stories: Meta = {
|
||||
title: 'Footer',
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { render } from '@testing-library/react'
|
||||
|
||||
import { Footer } from './'
|
||||
import { Footer } from '.'
|
||||
|
||||
describe('<Footer />', () => {
|
||||
it('should render with appropriate link tag version', async () => {
|
||||
it('should render with appropriate link tag version', () => {
|
||||
const version = '1.0.0'
|
||||
const { getByText } = render(<Footer version={version} />)
|
||||
const versionLink = getByText(`website v${version}`) as HTMLAnchorElement
|
||||
|
@ -13,10 +13,10 @@ export const Footer: React.FC<FooterProps> = (props) => {
|
||||
const { version } = props
|
||||
|
||||
return (
|
||||
<footer className='bg-white flex flex-col items-center justify-center py-6 text-lg border-t-2 border-gray-600 dark:border-gray-400 dark:bg-black'>
|
||||
<footer className='flex flex-col items-center justify-center border-t-2 border-gray-600 bg-white py-6 text-lg dark:border-gray-400 dark:bg-black'>
|
||||
<p>
|
||||
<Link href='/'>
|
||||
<a className='hover:underline text-green-800 dark:text-green-400'>
|
||||
<a className='text-green-800 hover:underline dark:text-green-400'>
|
||||
Thream
|
||||
</a>
|
||||
</Link>{' '}
|
||||
|
@ -8,7 +8,7 @@ export const VersionLink: React.FC<VersionLinkProps> = (props) => {
|
||||
|
||||
return (
|
||||
<a
|
||||
className='hover:underline text-green-800 dark:text-green-400'
|
||||
className='text-green-800 hover:underline dark:text-green-400'
|
||||
href={`https://github.com/Thream/${repository}/releases/tag/v${version}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
|
Reference in New Issue
Block a user