Skip to content

Commit fe2fb15

Browse files
PR comments and one more anchor link
1 parent 16693c3 commit fe2fb15

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/projects/projectId/attributes/attributeId/AttributeCalculations.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,13 @@ export default function AttributeCalculation() {
271271
<div className={`sticky z-40 h-12 ${isHeaderNormal ? 'top-1' : '-top-5'}`}>
272272
<div className={`bg-white flex-grow ${isHeaderNormal ? '' : 'shadow'}`}>
273273
<div className={`flex-row justify-start items-center inline-block ${isHeaderNormal ? 'p-0' : 'flex py-2'}`} style={{ transition: 'all .25s ease-in-out' }}>
274-
<button onClick={() => router.push(`/projects/${projectId}/settings`)}
275-
className="text-green-800 text-sm font-medium">
274+
<a href={`/refinery/projects/${projectId}/settings`} onClick={(e) => {
275+
e.preventDefault();
276+
router.push(`/projects/${projectId}/settings`);
277+
}} className="text-green-800 text-sm font-medium">
276278
<IconArrowLeft className="h-5 w-5 inline-block text-green-800" />
277279
<span className="leading-5">Go back</span>
278-
</button>
280+
</a>
279281
{!isHeaderNormal && <div className="mx-4 text-sm leading-5 font-medium text-gray-500 inline-block">{currentAttribute.name}</div>}
280282
<Statuses status={currentAttribute.state} page="attributes" initialCaption="Registered" />
281283
</div>

0 commit comments

Comments
 (0)