// @flow import React from 'react'; import { observer } from 'mobx-react'; import styled from 'styled-components'; import { Flex } from 'reflexbox'; import Layout, { Title } from 'components/Layout'; import CenteredContent from 'components/CenteredContent'; import SlackAuthLink from 'components/SlackAuthLink'; import ApiKeyRow from './components/ApiKeyRow'; import styles from './Settings.scss'; import SettingsStore from './SettingsStore'; @observer class Settings extends React.Component { store = SettingsStore; constructor(props) { super(props); this.store = new SettingsStore(); } render() { const title = ( Settings ); const showSlackSettings = DEPLOYMENT === 'hosted'; return ( {showSlackSettings &&

Slack

Connect Atlas to your Slack to instantly search for your documents using /atlas command.

Add to Slack
}

API access

Create API tokens to hack on your Atlas. Learn more in API documentation.

{this.store.apiKeys && {this.store.apiKeys.map(key => ( ))}
}
); } } const InlineForm = ({ placeholder, buttonLabel, name, value, onChange, onSubmit, disabled, }: { placeholder: string, buttonLabel: string, name: string, value: string, onChange: Function, onSubmit: Function, disabled?: boolean, }) => { const handleSubmit = event => { event.preventDefault(); onSubmit(); }; return (