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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ To add, edit, or delete content in our documentation, you have to modify Markdow
- `kb/` Contains `.md` files that populate the Knowledge Base.
- `library/` Contains `.md` files that populate the Streamlit Library section.
- `streamlit-cloud/`Contains `.md` files that populate the Streamlit Community Cloud section.
- `gdpr-banner.md` You'll never have to edit this file.
- `index.md` Contains text that populates the index page.
- `menu.md` This is a special file containing only front matter that defines the docs Menu. You will need to add an entry on this file for each new page you create within the docs' site.

Expand Down
11 changes: 11 additions & 0 deletions components/navigation/cookiePolicyButton.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const CookiePolicyButton = ({ children, className, ...props }) => {
const classes = `ot-sdk-show-settings${className ? ` ${className}` : ""}`;

return (
<button className={classes} {...props}>
{children}
</button>
);
};

export default CookiePolicyButton;
14 changes: 8 additions & 6 deletions components/navigation/footer.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import Link from "next/link";
import dynamic from "next/dynamic";

import styles from "./footer.module.css";

const Footer = ({ setIsTelemetryModalVisible }) => {
const CookiePolicyButton = dynamic(() => import("./cookiePolicyButton"), {
ssr: false,
});

const Footer = () => {
return (
<footer className={styles.Container}>
<section className={styles.InnerContainer}>
Expand Down Expand Up @@ -181,12 +186,9 @@ const Footer = ({ setIsTelemetryModalVisible }) => {
</section>
<div className={styles.Copyright}>
<span>&copy; {new Date().getFullYear()} Snowflake Inc.</span>
<button
className="hover:opacity-80 ml-2"
onClick={() => setIsTelemetryModalVisible(true)}
>
<CookiePolicyButton className="hover:opacity-80 ml-2">
Cookie policy
</button>
</CookiePolicyButton>
</div>
</section>
</footer>
Expand Down
73 changes: 0 additions & 73 deletions components/utilities/cookieSettingsModal.js

This file was deleted.

167 changes: 0 additions & 167 deletions components/utilities/cookieSettingsModal.module.css

This file was deleted.

Loading