This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
.circleci
.github
.vscode
__mocks__
app
flow-typed
public
server
shared
components
Branding.js
Breadcrumb.js
BreadcrumbMenu.js
Flex.js
GithubLogo.js
GoogleLogo.js
Notice.js
OutlineLogo.js
SlackLogo.js
TeamLogo.js
Time.js
styles
utils
constants.js
random.js
.babelrc
.env.sample
.eslintignore
.eslintrc
.flowconfig
.gitignore
.sequelizerc
CODE_OF_CONDUCT.md
Dockerfile
LICENSE
Makefile
Procfile
README.md
SECURITY.md
app.json
docker-compose.yml
index.js
init.js
package.json
setupJest.js
webpack.config.dev.js
webpack.config.js
webpack.config.prod.js
yarn.lock
outline/shared/components/Notice.js
Tom Moor 642c11ff7d Document Archive ()
* WIP: Archive

* WIP

* Finishing up archive endpoints

* WIP

* Update docs

* Flow

* Stash

* Add toast message confirmations

* Redirect handling, fixed publishhing info for archived docs

* Redirect to collection instead of home, remove unused pub info

* Account for deleted parent

* Trash -> Archive
Allow reading of archived docs

* Dont overload deletedAt

* Fixes

* 💚

* ParentDocumentId wipe for unarchived sub docs

* Fix: CMD+S exits editing
Fix: Duplicate user name on published but unedited docs

* Improve jank on paginated lists

* Prevent editing when archived

* 💚
Separate lint / flow steps
2019-04-06 16:20:27 -07:00

14 lines
333 B
JavaScript

// @flow
import styled from 'styled-components';
const Notice = styled.p`
background: ${props =>
props.muted ? props.theme.sidebarBackground : props.theme.yellow};
color: ${props =>
props.muted ? props.theme.sidebarText : 'hsla(46, 100%, 20%, 1)'};
padding: 10px 12px;
border-radius: 4px;
`;
export default Notice;