Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandarIlic committed Mar 4, 2024
1 parent ec6ca67 commit 8f17c61
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import coil.compose.SubcomposeAsyncImage
import net.primal.android.R
import net.primal.android.attachments.domain.CdnImage
import net.primal.android.core.compose.icons.PrimalIcons
import net.primal.android.core.compose.icons.primaliconpack.AvatarDefault
import net.primal.android.theme.AppTheme
import net.primal.android.R

@Composable
fun AvatarThumbnail(
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.ui.text.PlaceholderVerticalAlign
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.sp
import net.primal.android.R
import net.primal.android.core.compose.feed.model.FeedPostAction
import net.primal.android.core.compose.feed.model.FeedPostStatsUi
import net.primal.android.core.compose.icons.PrimalIcons
Expand All @@ -37,7 +38,6 @@ import net.primal.android.core.compose.icons.primaliconpack.FeedRepostsFilled
import net.primal.android.core.compose.icons.primaliconpack.FeedZaps
import net.primal.android.core.compose.icons.primaliconpack.FeedZapsFilled
import net.primal.android.theme.AppTheme
import net.primal.android.R

@Composable
fun FeedNoteStatsRow(
Expand Down
10 changes: 8 additions & 2 deletions app/src/main/kotlin/net/primal/android/drawer/PrimalDrawer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ private fun DrawerHeader(userAccount: UserAccount?) {
onClick = {
},
) {
Icon(imageVector = PrimalIcons.QrCode, contentDescription = stringResource(id = R.string.accessibility_qr_code))
Icon(
imageVector = PrimalIcons.QrCode,
contentDescription = stringResource(id = R.string.accessibility_qr_code),
)
}

Text(
Expand Down Expand Up @@ -264,7 +267,10 @@ private fun DrawerFooter(onThemeSwitch: () -> Unit) {
IconButton(
onClick = onThemeSwitch,
) {
Icon(imageVector = iconVector, contentDescription = stringResource(id = R.string.accessibility_toggle_between_dark_and_light_mode))
Icon(
imageVector = iconVector,
contentDescription = stringResource(id = R.string.accessibility_toggle_between_dark_and_light_mode),
)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import coil.compose.SubcomposeAsyncImage
import java.util.UUID
import net.primal.android.R
import net.primal.android.core.compose.PrimalLoadingSpinner
import net.primal.android.editor.domain.NoteAttachment
import net.primal.android.theme.AppTheme
import net.primal.android.R

@Composable
fun NoteAttachmentPreview(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun SearchScreen(
icon = PrimalIcons.ArrowBack,
onClick = onClose,
appBarIconContentDescription = stringResource(id = R.string.accessibility_back_button),
)
)
},
title = {
SearchTextField(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,11 @@ private fun MessageOutlinedTextField(
AppBarIcon(
modifier = Modifier.padding(bottom = 4.dp, start = 8.dp),
icon = if (sending) Icons.Outlined.HourglassBottom else Icons.Outlined.ArrowUpward,
appBarIconContentDescription = if (sending) stringResource(id = R.string.accessibility_message_being_sent) else stringResource(
id = R.string.accessibility_send_message),
appBarIconContentDescription = if (sending) {
stringResource(id = R.string.accessibility_message_being_sent)
} else {
stringResource(id = R.string.accessibility_send_message)
},
enabledBackgroundColor = AppTheme.colorScheme.primary,
tint = Color.White,
enabled = sendEnabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ fun NotificationsScreen(
AppBarIcon(
icon = PrimalIcons.Settings,
onClick = onNotificationSettings,
appBarIconContentDescription = stringResource(id = R.string.accessibility_notification_settings),
appBarIconContentDescription = stringResource(
id = R.string.accessibility_notification_settings,
),
)
},
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private fun ProfileFollowsScreen(
navigationIcon = PrimalIcons.ArrowBack,
onNavigationIconClick = onClose,
navigationIconContentDescription = stringResource(id = R.string.accessibility_back_button),
)
)
},
content = { paddingValues ->
FollowsLazyColumn(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package net.primal.android.wallet.dashboard.ui

import android.accounts.AuthenticatorDescription
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand Down

0 comments on commit 8f17c61

Please sign in to comment.