This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch refactor-6307
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit bc16b6e66693815234a689e3626a3adb3037b36d
Author: mintsweet <[email protected]>
AuthorDate: Thu Dec 7 11:23:55 2023 +0800

    refactor(config-ui): use new ui divider to replace old divider component
---
 config-ui/src/components/divider/index.tsx         | 26 ----------------------
 config-ui/src/components/index.ts                  |  1 -
 .../plugins/components/scope-config-form/index.tsx |  4 ++--
 3 files changed, 2 insertions(+), 29 deletions(-)

diff --git a/config-ui/src/components/divider/index.tsx 
b/config-ui/src/components/divider/index.tsx
deleted file mode 100644
index 51f3a8f89..000000000
--- a/config-ui/src/components/divider/index.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-import styled from 'styled-components';
-
-export const Divider = styled.div`
-  margin: 12px 0;
-  width: 100%;
-  height: 1px;
-  background-color: #dbe4fd;
-`;
diff --git a/config-ui/src/components/index.ts 
b/config-ui/src/components/index.ts
index 50591ecde..9163673d8 100644
--- a/config-ui/src/components/index.ts
+++ b/config-ui/src/components/index.ts
@@ -18,7 +18,6 @@
 
 export * from './action';
 export * from './buttons';
-export * from './divider';
 export * from './form';
 export * from './inspector';
 export * from './loading';
diff --git a/config-ui/src/plugins/components/scope-config-form/index.tsx 
b/config-ui/src/plugins/components/scope-config-form/index.tsx
index af8c19df3..0542ff451 100644
--- a/config-ui/src/plugins/components/scope-config-form/index.tsx
+++ b/config-ui/src/plugins/components/scope-config-form/index.tsx
@@ -18,11 +18,11 @@
 
 import { useState, useEffect, useMemo } from 'react';
 import { omit } from 'lodash';
-import { Form, Card, Alert } from 'antd';
+import { Form, Card, Alert, Divider } from 'antd';
 import { InputGroup, Button, Intent } from '@blueprintjs/core';
 
 import API from '@/api';
-import { ExternalLink, FormItem, MultiSelector, Message, Buttons, Divider } 
from '@/components';
+import { ExternalLink, FormItem, MultiSelector, Message, Buttons } from 
'@/components';
 import { transformEntities, EntitiesLabel } from '@/config';
 import { getPluginConfig } from '@/plugins';
 import { GitHubTransformation } from '@/plugins/register/github';

Reply via email to