Skip to content

Commit f1a57c0

Browse files
authored
Merge pull request #15 from zzyangh/feature/go-to-dms-25
[feature]: Navigate to origin when click logo
2 parents aac2119 + af04faf commit f1a57c0

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

webapp/packages/core-blocks/src/layout/AppLogo.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ interface Props {
1919
export const AppLogo: React.FC<Props> = function AppLogo({ title, onClick, iconSrc = '/icons/logo_sm.svg' }) {
2020
const style = useS(styles);
2121
return (
22-
<div tabIndex={0} className={s(style, { container: true, active: onClick !== undefined })} onClick={onClick}>
22+
<div
23+
tabIndex={0}
24+
className={s(style, { container: true, active: onClick !== undefined })}
25+
onClick={() => {
26+
window.location.href = `${location.origin}?from=odc`;
27+
}}
28+
>
2329
<IconOrImage title={title} className={s(style, { logo: true })} icon={iconSrc} />
2430
</div>
2531
);

0 commit comments

Comments
 (0)