Browse Source

tests: fix ts lint error

antd@3
chenshuai2144 6 years ago
parent
commit
08718ea570
  1. 13
      .github/workflows/GitHub_Pages_Deploy.yml
  2. 10
      .github/workflows/ci.yml
  3. 2
      src/components/Authorized/Authorized.tsx
  4. 2
      src/layouts/BasicLayout.tsx
  5. 2
      src/pages/404.tsx

13
.github/workflows/GitHub_Pages_Deploy.yml

@ -1,13 +0,0 @@
name: Deploy to GitHub Pages
on: [push]
jobs:
Deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
if: success() && github.event == 'push' && github.ref == 'master'
steps:
- name: publish
uses: maxheld83/ghpages@v0.2.1
env:
BUILD_DIR: 'dist/'
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

10
.github/workflows/ci.yml

@ -25,3 +25,13 @@ jobs:
PROGRESS: none
NODE_ENV: test
NODE_OPTIONS: --max_old_space_size=4096
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
if: success() && github.event == 'push' && github.ref == 'master'
steps:
- name: publish
uses: maxheld83/ghpages@v0.2.1
env:
BUILD_DIR: 'dist/'
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}

2
src/components/Authorized/Authorized.tsx

@ -21,7 +21,7 @@ const Authorized: React.FunctionComponent<AuthorizedProps> = ({
authority,
noMatch = (
<Result
status="403"
status={403}
title="403"
subTitle="Sorry, you are not authorized to access this page."
/>

2
src/layouts/BasicLayout.tsx

@ -25,7 +25,7 @@ import logo from '../assets/logo.svg';
const noMatch = (
<Result
status="403"
status={403}
title="403"
subTitle="Sorry, you are not authorized to access this page."
extra={

2
src/pages/404.tsx

@ -7,7 +7,7 @@ import { router } from 'umi';
const NoFoundPage: React.FC<{}> = () => (
<Result
status="404"
status={404}
title="404"
subTitle="Sorry, the page you visited does not exist."
extra={

Loading…
Cancel
Save