Skip to content

Commit 173101d

Browse files
Multi-db banner notice (#969)
* Multi-db banner notice * Revert some changes, adjust copy
1 parent abc5d21 commit 173101d

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

src/components/Firestore/index.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { Card } from '@rmwc/card';
2121
import { Elevation } from '@rmwc/elevation';
2222
import { GridCell } from '@rmwc/grid';
2323
import { Tab, TabBar } from '@rmwc/tabs';
24+
import { Typography } from '@rmwc/typography';
2425
import React, { Suspense, useState } from 'react';
2526
import {
2627
Link,
@@ -33,9 +34,11 @@ import {
3334
} from 'react-router-dom';
3435

3536
import { CustomThemeProvider } from '../../themes';
37+
import { Callout } from '../common/Callout';
3638
import { useIsEmulatorDisabled } from '../common/EmulatorConfigProvider';
3739
import { EmulatorDisabled } from '../common/EmulatorDisabled';
3840
import { InteractiveBreadCrumbBar } from '../common/InteractiveBreadCrumbBar';
41+
import { DocsLink } from '../common/links/DocsLink';
3942
import { Spinner } from '../common/Spinner';
4043
import { promptClearAll } from './dialogs/clearAll';
4144
import { Root } from './Document';
@@ -132,6 +135,27 @@ export const Firestore: React.FC<React.PropsWithChildren<unknown>> = React.memo(
132135
<Spinner span={12} data-testid="firestore-loading" />
133136
) : (
134137
<FirestoreStore>
138+
<GridCell span={12}>
139+
<Callout
140+
aside={true}
141+
actions={
142+
<div className="link">
143+
<DocsLink
144+
href="emulator-suite/connect_firestore"
145+
target="_blank"
146+
rel="noopener noreferrer"
147+
>
148+
<Typography theme="primary" use="body2" className="link">
149+
Learn more
150+
</Typography>
151+
</DocsLink>
152+
</div>
153+
}
154+
>
155+
The Emulator Suite UI only supports the (default) database right
156+
now.
157+
</Callout>
158+
</GridCell>
135159
<GridCell span={12} className="Firestore">
136160
<div className="Firestore-sub-tabs">
137161
<TabBar theme="onSurface" activeTabIndex={activeTabIndex}>

src/components/common/Callout.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
display: flex;
3333
align-items: stretch;
3434
.Callout-icon {
35-
color: white;
35+
color: var(--mdc-theme-text-primary-on-background);
3636
}
3737
}
3838

0 commit comments

Comments
 (0)