ソースを参照

reuse layout (#2956)

tags/0.5.11
legao 1年前
コミット
d5214e4644
コミッターのメールアドレスに関連付けられたアカウントが存在しません

+ 6
- 4
web/app/(commonLayout)/datasets/NewDatasetCard.tsx ファイルの表示

'use client' 'use client'


import { forwardRef, useState } from 'react'
import { forwardRef } from 'react'
import classNames from 'classnames' import classNames from 'classnames'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import Link from 'next/link'
import style from '../list.module.css' import style from '../list.module.css'


const CreateAppCard = forwardRef<HTMLAnchorElement>((_, ref) => { const CreateAppCard = forwardRef<HTMLAnchorElement>((_, ref) => {
const { t } = useTranslation() const { t } = useTranslation()
const [showNewAppDialog, setShowNewAppDialog] = useState(false)


return ( return (
<a ref={ref} className={classNames(style.listItem, style.newItemCard)} href='/datasets/create'>
<Link ref={ref} className={classNames(style.listItem, style.newItemCard)} href='/datasets/create'>
<div className={style.listItemTitle}> <div className={style.listItemTitle}>
<span className={style.newItemIcon}> <span className={style.newItemIcon}>
<span className={classNames(style.newItemIconImage, style.newItemIconAdd)} /> <span className={classNames(style.newItemIconImage, style.newItemIconAdd)} />
</div> </div>
<div className={style.listItemDescription}>{t('dataset.createDatasetIntro')}</div> <div className={style.listItemDescription}>{t('dataset.createDatasetIntro')}</div>
{/* <div className='text-xs text-gray-500'>{t('app.createFromConfigFile')}</div> */} {/* <div className='text-xs text-gray-500'>{t('app.createFromConfigFile')}</div> */}
</a>
</Link>
) )
}) })


CreateAppCard.displayName = 'CreateAppCard'

export default CreateAppCard export default CreateAppCard

+ 1
- 1
web/app/components/header/HeaderWrapper.tsx ファイルの表示

children, children,
}: HeaderWrapperProps) => { }: HeaderWrapperProps) => {
const pathname = usePathname() const pathname = usePathname()
const isBordered = ['/apps', '/datasets'].includes(pathname)
const isBordered = ['/apps', '/datasets', '/datasets/create'].includes(pathname)


return ( return (
<div className={classNames( <div className={classNames(

読み込み中…
キャンセル
保存