Skip to content

Commit 9531457

Browse files
authored
Merge pull request #1963 from streamr-dev/FRONT-1412-add-footer-to-streams
[FRONT-1412] Add footer to stream pages
2 parents 5636f81 + 5b4de40 commit 9531457

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/pages/StreamPage/index.tsx

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
useInvalidateStreamAbilities,
3232
} from '~/shared/stores/streamAbilities'
3333
import { useWalletAccount } from '~/shared/stores/wallet'
34-
import { DESKTOP, TABLET } from '~/shared/utils/styled'
3534
import { truncateStreamName } from '~/shared/utils/text'
3635
import {
3736
StreamDraft,
@@ -79,7 +78,7 @@ export function StreamEditPage({
7978
{streamId ? <StreamSummary streamId={streamId} /> : <></>}
8079
<LoadingIndicator loading={isLoading} />
8180
<LayoutColumn>
82-
<Footerless>
81+
<>
8382
<SegmentGrid>
8483
<ColoredBox>
8584
<Pad>
@@ -112,7 +111,7 @@ export function StreamEditPage({
112111
{canGrant && <CreateProjectHint streamId={streamId} />}
113112
</>
114113
)}
115-
</Footerless>
114+
</>
116115
</LayoutColumn>
117116
</>
118117
)
@@ -154,7 +153,7 @@ export function StreamConnectPage() {
154153
<LoadingIndicator loading={isLoading} />
155154
<LayoutColumn>
156155
{streamId != null && (
157-
<Footerless>
156+
<>
158157
<SegmentGrid>
159158
<ColoredBox>
160159
<Pad>
@@ -163,7 +162,7 @@ export function StreamConnectPage() {
163162
</ColoredBox>
164163
</SegmentGrid>
165164
<RelatedProjects streamId={streamId} />
166-
</Footerless>
165+
</>
167166
)}
168167
</LayoutColumn>
169168
</>
@@ -316,7 +315,7 @@ function StreamEntityForm(props: StreamEntityFormProps) {
316315
}
317316
}}
318317
>
319-
<Layout footer={null}>
318+
<Layout>
320319
<Header saveButtonRef={attach} />
321320
{typeof children === 'function' ? children(attach, ready) : children}
322321
</Layout>
@@ -456,18 +455,6 @@ const SaveButton = styled(Button)`
456455
justify-self: right;
457456
`
458457

459-
const Footerless = styled.div`
460-
padding-bottom: 80px;
461-
462-
@media ${TABLET} {
463-
padding-bottom: 92px;
464-
}
465-
466-
@media ${DESKTOP} {
467-
padding-bottom: 128px;
468-
}
469-
`
470-
471458
const Wings = styled.div`
472459
display: grid;
473460
grid-template-columns: fit-content(680px) auto;

0 commit comments

Comments
 (0)