Skip to content

Commit 9f9de19

Browse files
committed
Remove the unused are_links_dimmed prop and associated styling from the layout and footer components
- the checkpionts quick pick should not use relative time
1 parent 1065c9a commit 9f9de19

4 files changed

Lines changed: 4 additions & 22 deletions

File tree

apps/editor/src/views/panel/frontend/Panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ export const Panel = () => {
304304
<LayoutContext.Provider value={layout_context_value}>
305305
<div className={styles.container}>
306306
<div className={styles.slot}>
307-
<Layout are_links_dimmed={active_view == 'main'}>
307+
<Layout>
308308
<div
309309
className={cn(styles.content, {
310310
[styles['content--hidden']]: active_view != 'main'

apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.module.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,6 @@
2222
padding-left: 12px;
2323
transition: var(--transition-duration-250) opacity
2424
var(--transition-timing-function);
25-
26-
&--dimmed {
27-
opacity: var(--disabled-opacity);
28-
29-
&:hover {
30-
opacity: 1;
31-
}
32-
}
3325
}
3426

3527
&__icon-button {

apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import { use_compacting } from '@shared/hooks'
66
import { LayoutContext } from '../../../contexts/LayoutContext'
77
import { use_translation } from '../../../i18n/use-translation'
88

9-
type Props = {
10-
are_links_dimmed?: boolean
11-
}
12-
13-
export const Footer: React.FC<Props> = (props) => {
9+
export const Footer: React.FC = () => {
1410
const {
1511
can_undo,
1612
on_apply_click,
@@ -57,12 +53,7 @@ export const Footer: React.FC<Props> = (props) => {
5753
return (
5854
<>
5955
<div className={styles.footer} ref={container_ref}>
60-
<div
61-
ref={left_ref}
62-
className={cn(styles.footer__left, {
63-
[styles['footer__left--dimmed']]: props.are_links_dimmed
64-
})}
65-
>
56+
<div ref={left_ref} className={styles.footer__left}>
6657
<a
6758
className={cn(
6859
styles['footer__icon-button'],

apps/editor/src/views/panel/frontend/components/Layout/Layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ import { Footer } from './Footer'
33

44
type Props = {
55
children: React.ReactNode
6-
are_links_dimmed?: boolean
76
}
87

98
export const Layout: React.FC<Props> = (props) => {
109
return (
1110
<div className={styles.container}>
1211
<div className={styles.content}>{props.children}</div>
13-
<Footer are_links_dimmed={props.are_links_dimmed} />
12+
<Footer />
1413
</div>
1514
)
1615
}

0 commit comments

Comments
 (0)