Skip to content

Commit

Permalink
Multi-db banner notice (#969)
Browse files Browse the repository at this point in the history
* Multi-db banner notice

* Revert some changes, adjust copy
  • Loading branch information
christhompsongoogle authored Jul 5, 2023
1 parent abc5d21 commit 173101d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
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

0 comments on commit 173101d

Please sign in to comment.