Skip to content

Commit

Permalink
fix: updated all a tags to Link tags in app summary (#9777)
Browse files Browse the repository at this point in the history
* fix: updated all a tags to Link tags

Signed-off-by: Soumya Ghosh Dastidar <[email protected]>

* fix: revert external links to a tags

Signed-off-by: Soumya Ghosh Dastidar <[email protected]>

* fix: linting

Signed-off-by: Soumya Ghosh Dastidar <[email protected]>
  • Loading branch information
gdsoumya authored Jun 28, 2022
1 parent 8649c41 commit 2786b70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {RevisionFormField} from '../revision-form-field/revision-form-field';
import {ComparisonStatusIcon, HealthStatusIcon, syncStatusMessage, urlPattern} from '../utils';
import {ApplicationRetryOptions} from '../application-retry-options/application-retry-options';
import {ApplicationRetryView} from '../application-retry-view/application-retry-view';
import {Link} from 'react-router-dom';

require('./application-summary.scss');

Expand All @@ -31,7 +32,7 @@ export const ApplicationSummary = (props: {app: models.Application; updateApp: (
const attributes = [
{
title: 'PROJECT',
view: <a href={'/settings/projects/' + app.spec.project}>{app.spec.project}</a>,
view: <Link to={'/settings/projects/' + app.spec.project}>{app.spec.project}</Link>,
edit: (formApi: FormApi) => (
<DataLoader load={() => services.projects.list('items.metadata.name').then(projs => projs.map(item => item.metadata.name))}>
{projects => <FormField formApi={formApi} field='spec.project' component={FormSelect} componentProps={{options: projects}} />}
Expand Down

0 comments on commit 2786b70

Please sign in to comment.