Browse Source

fix: faq button styles fix

fix/remove-env-var
Thomas Osmonson 4 years ago
parent
commit
2c0a149804
  1. 1
      src/components/color-modes/styles.tsx
  2. 2
      src/components/mdx/components/code.tsx
  3. 4
      src/pages/authentication/overview.md
  4. 4
      src/pages/references/faqs/[slug].tsx

1
src/components/color-modes/styles.tsx

@ -1,4 +1,3 @@
/** @jsx jsx */
import * as React from 'react'; import * as React from 'react';
import { jsx, css, Global } from '@emotion/react'; import { jsx, css, Global } from '@emotion/react';
import { theme, generateCssVariables } from '@stacks/ui'; import { theme, generateCssVariables } from '@stacks/ui';

2
src/components/mdx/components/code.tsx

@ -1,4 +1,3 @@
/** @jsx jsx */
import React, { Children } from 'react'; import React, { Children } from 'react';
import { import {
Box, Box,
@ -14,7 +13,6 @@ import {
import { ClipboardCheckIcon } from '@components/icons/clipboard-check'; import { ClipboardCheckIcon } from '@components/icons/clipboard-check';
import { border, onlyText } from '@common/utils'; import { border, onlyText } from '@common/utils';
import { css, ForwardRefExoticComponentWithAs, forwardRefWithAs, Theme } from '@stacks/ui-core'; import { css, ForwardRefExoticComponentWithAs, forwardRefWithAs, Theme } from '@stacks/ui-core';
import { jsx } from '@emotion/react';
import { Text } from '@components/typography'; import { Text } from '@components/typography';
import { useHover } from 'use-events'; import { useHover } from 'use-events';
import { IconButton } from '@components/icon-button'; import { IconButton } from '@components/icon-button';

4
src/pages/authentication/overview.md

@ -35,9 +35,9 @@ Scopes define the permissions requested by an app for granting during authentica
Apps may request any of the following scopes: Apps may request any of the following scopes:
| Scope | Definition | | Scope | Definition |
| -------------- | ------------------------------------------------------------------------------------ | | -------------- | ------------------------------------------------------------------------------------ | --- |
| `store_write` | Read and write data to the user's Gaia hub in an app-specific storage bucket. | | `store_write` | Read and write data to the user's Gaia hub in an app-specific storage bucket. |
| `publish_data` | Publish data so that other users of the app can discover and interact with the user. | | | `publish_data` | Publish data so that other users of the app can discover and interact with the user. | |
The permissions scope should be specified through the [`AppConfig`](https://blockstack.github.io/stacks.js/classes/appconfig.html) The permissions scope should be specified through the [`AppConfig`](https://blockstack.github.io/stacks.js/classes/appconfig.html)
object. If no `scopes` array is provided to the `redirectToSignIn` or `makeAuthRequest` functions, the default is to request `['store_write']`. object. If no `scopes` array is provided to the `redirectToSignIn` or `makeAuthRequest` functions, the default is to request `['store_write']`.

4
src/pages/references/faqs/[slug].tsx

@ -4,7 +4,6 @@ import { Box, Flex, ChevronIcon, space, color, Grid } from '@stacks/ui';
import hydrate from 'next-mdx-remote/hydrate'; import hydrate from 'next-mdx-remote/hydrate';
import { Accordion, AccordionItem, AccordionButton, AccordionPanel } from '@reach/accordion'; import { Accordion, AccordionItem, AccordionButton, AccordionPanel } from '@reach/accordion';
import { border } from '@common/utils'; import { border } from '@common/utils';
import { css } from '@stacks/ui-core';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import { useActiveHeading } from '@common/hooks/use-active-heading'; import { useActiveHeading } from '@common/hooks/use-active-heading';
import { BackButton } from '@components/back-button'; import { BackButton } from '@components/back-button';
@ -29,12 +28,15 @@ const FAQItem = React.memo(({ faq, ...rest }: any) => {
display: 'flex', display: 'flex',
width: '100%', width: '100%',
outline: 'none', outline: 'none',
bg: 'transparent',
border: '0',
alignItems: 'center', alignItems: 'center',
justifyContent: 'space-between', justifyContent: 'space-between',
py: space('extra-loose'), py: space('extra-loose'),
textAlign: 'left', textAlign: 'left',
color: isActive ? color('accent') : color('text-title'), color: isActive ? color('accent') : color('text-title'),
_hover: { _hover: {
cursor: 'pointer',
color: color('accent'), color: color('accent'),
}, },
}} }}

Loading…
Cancel
Save