mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-31 22:58:32 +00:00
lint, tests
This commit is contained in:
parent
dbba95f11e
commit
da12f8f359
|
@ -42,8 +42,8 @@ func (suite *ThemesTestSuite) TestPopulateThemes() {
|
|||
if theme == nil {
|
||||
suite.FailNow("theme was nil")
|
||||
}
|
||||
suite.Equal("Blurple Light", theme.Title)
|
||||
suite.Equal("Light blurple theme", theme.Description)
|
||||
suite.Equal("Blurple (light)", theme.Title)
|
||||
suite.Equal("Official light blurple theme", theme.Description)
|
||||
suite.Equal("blurple-light.css", theme.FileName)
|
||||
}
|
||||
|
||||
|
|
|
@ -79,15 +79,15 @@ function UserProfileForm({ data: profile }) {
|
|||
|
||||
// Parse out available theme options into nice format.
|
||||
const { data: themes } = useAccountThemesQuery();
|
||||
let themeOptions = { "": "Default" }
|
||||
let themeOptions = { "": "Default" };
|
||||
themes?.forEach((theme) => {
|
||||
let key = theme.file_name;
|
||||
let value = theme.title;
|
||||
if (theme.description) {
|
||||
value += " - " + theme.description;
|
||||
}
|
||||
themeOptions[key] = value
|
||||
})
|
||||
themeOptions[key] = value;
|
||||
});
|
||||
|
||||
const form = {
|
||||
avatar: useFileInput("avatar", { withPreview: true }),
|
||||
|
|
Loading…
Reference in a new issue