Fix web project build errors

This commit is contained in:
Gabe Kangas
2022-05-11 23:31:31 -07:00
parent b66617961d
commit 72c01e1b9a
86 changed files with 863 additions and 813 deletions

View File

@@ -1,19 +1,16 @@
import React from 'react';
import cn from 'classnames';
import s from './Logo.module.scss'
import s from './Logo.module.scss';
interface Props {
variant: 'simple' | 'contrast'
variant: 'simple' | 'contrast';
}
export default function Logo({variant = 'simple'}: Props) {
const rootClassName = cn(
s.root,
{
[s.simple]: variant === 'simple',
[s.contrast]: variant === 'contrast',
}
)
export default function Logo({ variant = 'simple' }: Props) {
const rootClassName = cn(s.root, {
[s.simple]: variant === 'simple',
[s.contrast]: variant === 'contrast',
});
return (
<div className={rootClassName}>

View File

@@ -6,8 +6,8 @@ import { ChatState, ChatVisibilityState } from '../../../interfaces/application-
import s from './UserDropdown.module.scss';
interface Props {
username?: string;
chatState?: ChatState;
username: string;
chatState: ChatState;
}
export default function UserDropdown({ username = 'test-user', chatState }: Props) {
@@ -44,11 +44,6 @@ export default function UserDropdown({ username = 'test-user', chatState }: Prop
<DownOutlined />
</Space>
</Button>
{/*
<button type="button" className="ant-dropdown-link" onClick={e => e.preventDefault()}>
{username} <DownOutlined />
</button>
*/}
</Dropdown>
</div>
);

View File

@@ -1 +1 @@
export { default } from './UserDropdown'
export { default } from './UserDropdown';

View File

@@ -1,2 +1,2 @@
export { default as UserDropdown } from './UserDropdown'
export { default as OwncastLogo } from './Logo'
export { default as UserDropdown } from './UserDropdown';
export { default as OwncastLogo } from './Logo';