Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/components/Firestore/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { Card } from '@rmwc/card';
import { Elevation } from '@rmwc/elevation';
import { GridCell } from '@rmwc/grid';
import { Tab, TabBar } from '@rmwc/tabs';
import { Typography } from '@rmwc/typography';
import React, { Suspense, useState } from 'react';
import {
Link,
Expand All @@ -33,9 +34,11 @@ import {
} from 'react-router-dom';

import { CustomThemeProvider } from '../../themes';
import { Callout } from '../common/Callout';
import { useIsEmulatorDisabled } from '../common/EmulatorConfigProvider';
import { EmulatorDisabled } from '../common/EmulatorDisabled';
import { InteractiveBreadCrumbBar } from '../common/InteractiveBreadCrumbBar';
import { DocsLink } from '../common/links/DocsLink';
import { Spinner } from '../common/Spinner';
import { promptClearAll } from './dialogs/clearAll';
import { Root } from './Document';
Expand Down Expand Up @@ -132,6 +135,27 @@ export const Firestore: React.FC<React.PropsWithChildren<unknown>> = React.memo(
<Spinner span={12} data-testid="firestore-loading" />
) : (
<FirestoreStore>
<GridCell span={12}>
<Callout
aside={true}
actions={
<div className="link">
<DocsLink
href="emulator-suite/connect_firestore"
target="_blank"
rel="noopener noreferrer"
>
<Typography theme="primary" use="body2" className="link">
Learn more
</Typography>
</DocsLink>
</div>
}
>
The Emulator Suite UI only supports the (default) database right
now.
</Callout>
</GridCell>
<GridCell span={12} className="Firestore">
<div className="Firestore-sub-tabs">
<TabBar theme="onSurface" activeTabIndex={activeTabIndex}>
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Callout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
display: flex;
align-items: stretch;
.Callout-icon {
color: white;
color: var(--mdc-theme-text-primary-on-background);
}
}

Expand Down