Skip to content

Commit

Permalink
refactor(config-ui): use new ui card to replace old card component (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet authored Dec 5, 2023
1 parent 0e7bf40 commit 01a5c3f
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 40 deletions.
30 changes: 0 additions & 30 deletions config-ui/src/components/card/index.tsx

This file was deleted.

1 change: 0 additions & 1 deletion config-ui/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
export * from './action';
export * from './alert';
export * from './buttons';
export * from './card';
export * from './dialog';
export * from './divider';
export * from './form';
Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/components/no-data/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
*
*/

import { Card } from 'antd';

import Img from '@/images/no-data.svg';
import { Card } from '@/components';

import styled from 'styled-components';

Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/pages/blueprint/detail/status-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

import { useState, useMemo } from 'react';
import { useNavigate } from 'react-router-dom';
import { Card } from 'antd';
import { Button, Switch, Intent, Position, Popover, Menu, MenuItem } from '@blueprintjs/core';
import { Tooltip2 } from '@blueprintjs/popover2';

import API from '@/api';
import { Card, IconButton, Dialog, Message } from '@/components';
import { IconButton, Dialog, Message } from '@/components';
import { getCron } from '@/config';
import { useAutoRefresh } from '@/hooks';
import { PipelineInfo, PipelineTasks, PipelineTable } from '@/routes/pipeline';
Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/pages/project/detail/settings-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@

import { useEffect, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { Card } from 'antd';
import { InputGroup, Checkbox, Button, Icon, Intent } from '@blueprintjs/core';

import API from '@/api';
import { Card, FormItem, Buttons, toast, Dialog } from '@/components';
import { FormItem, Buttons, toast, Dialog } from '@/components';
import { IProject } from '@/types';
import { operator } from '@/utils';

Expand Down
4 changes: 2 additions & 2 deletions config-ui/src/plugins/components/scope-config-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

import { useState, useEffect, useMemo } from 'react';
import { omit } from 'lodash';
import { Form } from 'antd';
import { Form, Card } from 'antd';
import { InputGroup, Button, Intent } from '@blueprintjs/core';

import API from '@/api';
import { Alert, ExternalLink, Card, FormItem, MultiSelector, Message, Buttons, Divider } from '@/components';
import { Alert, ExternalLink, FormItem, MultiSelector, Message, Buttons, Divider } from '@/components';
import { transformEntities, EntitiesLabel } from '@/config';
import { getPluginConfig } from '@/plugins';
import { GitHubTransformation } from '@/plugins/register/github';
Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/routes/error/components/exception/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
*/

import { useNavigate } from 'react-router-dom';
import { Card } from 'antd';
import { Icon, Colors, Button, Intent } from '@blueprintjs/core';

import { Card, Buttons } from '@/components';
import { Buttons } from '@/components';

interface Props {
error: string | Error;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
*/

import { useState } from 'react';
import { Card } from 'antd';
import { Icon, Button, Colors, Intent } from '@blueprintjs/core';
import { useNavigate } from 'react-router-dom';

import API from '@/api';
import { Card, Buttons } from '@/components';
import { Buttons } from '@/components';
import { operator } from '@/utils';

export const NeedsDBMigrate = () => {
Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/routes/error/components/offline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

import { useMemo, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { Card } from 'antd';
import { Icon, Tag, Button, Intent, Colors, IconName } from '@blueprintjs/core';

import API from '@/api';
import { DEVLAKE_ENDPOINT } from '@/config';
import { Card, Buttons } from '@/components';
import { Buttons } from '@/components';
import { useAutoRefresh } from '@/hooks';

export const Offline = () => {
Expand Down
3 changes: 2 additions & 1 deletion config-ui/src/routes/pipeline/pipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
*
*/
import { useParams } from 'react-router-dom';
import { Card } from 'antd';

import { PageHeader, Card } from '@/components';
import { PageHeader } from '@/components';

import { PipelineInfo, PipelineTasks } from './components';

Expand Down

0 comments on commit 01a5c3f

Please sign in to comment.