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
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from 'react';
import { inject, hooksObserver } from 'app/componentConnectors';
import React, { FunctionComponent } from 'react';
import CSS from 'csstype';
import { useOvermind } from 'app/overmind';
import { Link } from 'react-router-dom';
import theme from '@codesandbox/common/lib/theme';

import { Button } from '@codesandbox/common/lib/components/Button';

// Inline styles because styled-components didn't load the styles
const titleStyles = {
const titleStyles: CSS.Properties = {
fontWeight: 600,
color: 'rgba(255, 255, 255, 0.9)',
fontSize: '1.125rem',
Expand All @@ -16,23 +16,23 @@ const titleStyles = {
textTransform: 'uppercase',
};

const dateStyles = {
const dateStyles: CSS.Properties = {
color: 'rgba(255, 255, 255, 0.5)',
fontSize: '.875rem',
float: 'right',
width: '100%',
textAlign: 'right',
};

const subTitleStyles = {
const subTitleStyles: CSS.Properties = {
fontWeight: 600,
color: 'rgba(255, 255, 255, .9)',
fontSize: '1rem',
marginTop: '1rem',
marginBottom: 0,
};

const descriptionStyles = {
const descriptionStyles: CSS.Properties = {
lineHeight: 1.6,
color: 'rgba(255, 255, 255, 0.7)',
fontWeight: 600,
Expand All @@ -41,9 +41,15 @@ const descriptionStyles = {
marginBottom: 0,
};

const W = props => <span {...props} style={{ color: 'white' }} />;
const W: FunctionComponent = props => (
<span {...props} style={{ color: 'white' }} />
);

export const DashboardChangelog: FunctionComponent = () => {
const {
actions: { modalClosed },
} = useOvermind();

function DashboardChangelog({ signals }) {
return (
<div
style={{
Expand Down Expand Up @@ -130,12 +136,12 @@ function DashboardChangelog({ signals }) {
block
small
secondary
onClick={() => {
signals.modalClosed();
}}
onClick={() => modalClosed()}
>
Close
</Button>
{/*
// @ts-ignore */}
<Button
href="/post/announcing-codesandbox-dashboard-teams"
style={{ marginTop: '1rem', marginLeft: '.25rem' }}
Expand All @@ -149,6 +155,4 @@ function DashboardChangelog({ signals }) {
</div>
</div>
);
}

export default inject('signals')(hooksObserver(DashboardChangelog));
};
11 changes: 8 additions & 3 deletions standalone-packages/vscode-textmate/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.