mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-29 05:12:47 -08:00
lint
This commit is contained in:
4 files changed
+1
-13
No files matched your search
@@ -20,13 +20,11 @@ import { PowerColorBadge, PowerIcon } from '$components/power';
|
||||
import * as css from './styles.css';
|
||||
|
||||
export function CreatorChip({
|
||||
backgroundColor,
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
backgroundColor?: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
|
||||
@@ -150,14 +150,12 @@ function SharedPowerAlert({ power, onCancel, onChange }: SharedPowerAlertProps)
|
||||
|
||||
export function PowerChip({
|
||||
userId,
|
||||
backgroundColor,
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
userId: string;
|
||||
backgroundColor?: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
|
||||
@@ -51,14 +51,12 @@ export function ServerChip({
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
backgroundColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
server: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
backgroundColor?: string;
|
||||
chipSurfaceStyle?: CSSProperties;
|
||||
}) {
|
||||
const mx = useMatrixClient();
|
||||
@@ -187,14 +185,12 @@ export function ShareChip({
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
backgroundColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
userId: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
backgroundColor?: string;
|
||||
chipSurfaceStyle?: CSSProperties;
|
||||
}) {
|
||||
const [cords, setCords] = useState<RectCords>();
|
||||
@@ -296,14 +292,12 @@ type MutualRoomsData = {
|
||||
|
||||
export function MutualRoomsChip({
|
||||
userId,
|
||||
backgroundColor,
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
userId: string;
|
||||
backgroundColor?: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
@@ -529,14 +523,12 @@ export function IgnoredUserAlert() {
|
||||
|
||||
export function OptionsChip({
|
||||
userId,
|
||||
backgroundColor,
|
||||
innerColor,
|
||||
cardColor,
|
||||
textColor,
|
||||
chipSurfaceStyle,
|
||||
}: {
|
||||
userId: string;
|
||||
backgroundColor?: string;
|
||||
innerColor?: string;
|
||||
cardColor?: string;
|
||||
textColor?: string;
|
||||
|
||||
@@ -532,7 +532,7 @@ export function UserRoomProfile({ userId, initialProfile }: Readonly<UserRoomPro
|
||||
: undefined;
|
||||
|
||||
const chipColors = showCustomHeroCard
|
||||
? { backgroundColor, innerColor, cardColor, textColor, chipSurfaceStyle }
|
||||
? { innerColor, cardColor, textColor, chipSurfaceStyle }
|
||||
: {};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user