Skip to content

Commit

Permalink
fix: some small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet committed Sep 13, 2024
1 parent 545e745 commit 1b616be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions config-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ FROM node:18-bookworm-slim as builder
WORKDIR /home/node/code
COPY . .

RUN cp env.example .env
RUN yarn install
RUN yarn build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import { useState, useMemo } from 'react';
import { useNavigate, Link } from 'react-router-dom';
import { Link } from 'react-router-dom';
import { PlusOutlined } from '@ant-design/icons';
import { Modal, Select, Space, Button } from 'antd';
import styled from 'styled-components';
Expand Down Expand Up @@ -62,8 +62,6 @@ export const AddConnectionDialog = ({ disabled = [], onCancel, onSubmit }: Props
const [step, setStep] = useState(1);
const [selectedValue, setSelectedValue] = useState<string>();

const navigate = useNavigate();

const connections = useAppSelector(selectAllConnections);

const options = useMemo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ export const ConfigurationPanel = ({ from, blueprint, onRefresh, onChangeTab }:
<NoData
text={
<>
If you have not created data connections yet, please <Link to="/connections">create connections</Link>{' '}
If you have not created data connections yet, please{' '}
<Link to="/connections" target="_blank">
create connections
</Link>{' '}
first and then add them to the project.
</>
}
Expand Down
4 changes: 2 additions & 2 deletions config-ui/src/routes/project/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ export const ProjectLayout = () => {
<Layout>
<Content style={{ padding: '36px 48px', overflowY: 'auto' }}>
<p>
{breadcrumbs(paths).map((b) => (
{breadcrumbs(paths).map((b, i) => (
<span key={b.path}>
<Link to={b.path}>{b.name}</Link>
{i !== paths.length - 2 ? <Link to={b.path}>{b.name}</Link> : <span>{b.name}</span>}
<span> / </span>
</span>
))}
Expand Down

0 comments on commit 1b616be

Please sign in to comment.