web: Add style CI workflow to enforce eslint checks on web module (#1910)

This commit is contained in:
Bowen Liang
2024-01-04 15:37:51 +08:00
committed by GitHub
parent b4a170cb8a
commit a798dcfae9
29 changed files with 141 additions and 102 deletions

View File

@@ -2,9 +2,9 @@
import { useTranslation } from 'react-i18next'
import classNames from 'classnames'
import s from './index.module.css'
import useSWR from 'swr'
import Link from 'next/link'
import s from './index.module.css'
import { fetchAccountIntegrates } from '@/service/common'
const titleClassName = `
@@ -42,7 +42,7 @@ export default function IntegrationsPage() {
</div>
{
!integrate.is_bound && (
<Link
<Link
className='flex items-center h-8 px-[7px] bg-white rounded-lg border border-gray-200 text-xs font-medium text-gray-700 cursor-pointer'
href={integrate.link}
target={'_blank'}>

View File

@@ -99,7 +99,7 @@ const Operation = ({
<div className="px-1 py-1">
{
['admin', 'normal'].map(role => (
<Menu.Item>
<Menu.Item key={role}>
<div className={itemClassName} onClick={() => handleUpdateMemberRole(role)}>
{
role === member.role

View File

@@ -6,7 +6,6 @@ import { useTranslation } from 'react-i18next'
import { ArrowLeftIcon, Squares2X2Icon } from '@heroicons/react/24/solid'
import type { AppDetailResponse } from '@/models/app'
type IAppBackProps = {
curApp: AppDetailResponse
}