Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

Commit

Permalink
change displaying settings default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-kokabi committed Feb 12, 2024
1 parent 0996987 commit 5b63253
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"dev": "plasmo dev",
"build": "plasmo build",
"package": "plasmo package"
"package": "plasmo build && plasmo package"
},
"dependencies": {
"@plasmohq/messaging": "^0.6.1",
Expand Down
2 changes: 1 addition & 1 deletion src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const storageDefaults = {
hide_premium_button: "true",
add_drafts_button: "false",
add_scheduled_button: "false",
add_settings_button: "false",
add_settings_button: "true",
add_analytics_button: "false",
hide_more_button: "false",
hide_trends_panel: "true",
Expand Down
4 changes: 2 additions & 2 deletions src/popup/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from "react"

import { readStorageAsString, writeStorage } from "~storage"

const Slider = ({ id, label, min, max, value = "14" }) => {
const Slider = ({ id, label, min, max, value = "14", classNames="" }) => {
const [inputValue, setInputValue] = useState(value)

readStorageAsString(id).then((value) => {
Expand All @@ -21,7 +21,7 @@ const Slider = ({ id, label, min, max, value = "14" }) => {
}

return (
<div className="flex flex-col">
<div className={`flex flex-col ${classNames}`}>
<div className="w-full">
<label
htmlFor={`slider-${id}`}
Expand Down
1 change: 1 addition & 0 deletions src/popup/sections/Features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const Features = () => {
<div className="flex flex-col justify-center">
<TimelineButtonGroup id="timeline_width" />
<Slider
classNames="mt-4"
id="tweet_font_size"
label="Tweet Font Size"
min={12}
Expand Down

0 comments on commit 5b63253

Please sign in to comment.