Skip to content

Commit

Permalink
Response backlink change
Browse files Browse the repository at this point in the history
  • Loading branch information
abishekTa-egov committed Nov 5, 2024
1 parent 14423af commit 739761c
Showing 1 changed file with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ const Response = () => {
type="success"
></PanelCard>
<ActionBar className="mc_back">
<Link to={state?.backlink ? state?.backlink : `/${window.contextPath}/employee/`}>
<Button
style={{ margin: "0.5rem", marginLeft: "6rem" }}
className="microplan-response-button"
variation="secondary"
label={t(back)}
icon={"ArrowBack"}
/>
</Link>
<Button
style={{ margin: "0.5rem", marginLeft: "6rem" }}
className="microplan-response-button"
variation="secondary"
label={t(back)}
icon={"ArrowBack"}
onClick={() => {
const backlink = state?.backlink || `/${window.contextPath}/employee/`;
history.push(backlink);
}}
/>
</ActionBar>
</>
);
Expand Down

0 comments on commit 739761c

Please sign in to comment.