Cleanup unused Javascript (#3027)
* chore(js): be stricter about dead code warnings * chore(js): remove dead code and unused exports * rebase * chore: remove unused files * chore(deps): remove unused prop-types dep * chore(js): remove unused function * chore(deps): remove + check unused deps * chore(js): remove unused exports. Closes #3036
This commit is contained in:
@@ -308,4 +308,3 @@ export const Content: FC = () => {
|
||||
</>
|
||||
);
|
||||
};
|
||||
export default Content;
|
||||
|
||||
@@ -70,7 +70,6 @@ export const CrossfadeImage: FC<CrossfadeImageProps> = ({
|
||||
</span>
|
||||
);
|
||||
};
|
||||
export default CrossfadeImage;
|
||||
|
||||
CrossfadeImage.defaultProps = {
|
||||
objectFit: 'fill',
|
||||
|
||||
@@ -33,4 +33,3 @@ export const Footer: FC<FooterProps> = ({ dynamicPaddingValue }) => {
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
export default Footer;
|
||||
|
||||
@@ -12,4 +12,3 @@ export const Logo: FC<LogoProps> = ({ src }) => (
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
export default Logo;
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import { CSSProperties, FC } from 'react';
|
||||
|
||||
export type ModIconProps = {
|
||||
style?: CSSProperties;
|
||||
fill?: string;
|
||||
stroke?: string;
|
||||
};
|
||||
|
||||
export const ModIcon: FC<ModIconProps> = ({
|
||||
style = { width: '1rem', height: '1rem' },
|
||||
fill = 'none',
|
||||
stroke = 'var(--color-owncast-gray-300)',
|
||||
}: ModIconProps) => (
|
||||
<svg
|
||||
fill={fill}
|
||||
stroke={stroke}
|
||||
style={style}
|
||||
viewBox="0 0 24 24"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<title>This user has moderation rights</title>
|
||||
<path
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
strokeWidth={2}
|
||||
d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
@@ -84,7 +84,6 @@ export const Statusbar: FC<StatusbarProps> = ({
|
||||
</div>
|
||||
);
|
||||
};
|
||||
export default Statusbar;
|
||||
|
||||
Statusbar.defaultProps = {
|
||||
lastConnectTime: null,
|
||||
|
||||
Reference in New Issue
Block a user